diff options
author | Thomas Lively <tlively@google.com> | 2022-11-29 15:41:42 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-29 13:41:42 -0800 |
commit | 0c97bb81325ae29f53de9372adad2971d6ef9509 (patch) | |
tree | ddf3eaef6a89cad68ad59b63df3331665cdcc9c4 /src/passes/RemoveMemory.cpp | |
parent | 2080165d06bce06f0ac3a3aa85f6a7a4c5e8ff04 (diff) | |
download | binaryen-0c97bb81325ae29f53de9372adad2971d6ef9509.tar.gz binaryen-0c97bb81325ae29f53de9372adad2971d6ef9509.tar.bz2 binaryen-0c97bb81325ae29f53de9372adad2971d6ef9509.zip |
[Parser] Do not assume `NAN` is positive (#5302)
It turns out that this assumption does not necessarily hold on Windows with
Visual Studio 2019. Instead of using `NAN` and `-NAN`, explicitly construct
positive and negative NaN values with `std::copysign`, which should be portable.
Fixes #5291.
Diffstat (limited to 'src/passes/RemoveMemory.cpp')
0 files changed, 0 insertions, 0 deletions