summaryrefslogtreecommitdiff
path: root/src/wasm2js.h
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2022-12-02 16:29:35 -0600
committerGitHub <noreply@github.com>2022-12-02 14:29:35 -0800
commit49f89749862749e4571983cac971ffb798d30c99 (patch)
tree1e013cf884ad479deae6ef05abea3c7013726fcc /src/wasm2js.h
parent99cd20964345f6280cca463b7bca98804a6a24c8 (diff)
downloadbinaryen-49f89749862749e4571983cac971ffb798d30c99.tar.gz
binaryen-49f89749862749e4571983cac971ffb798d30c99.tar.bz2
binaryen-49f89749862749e4571983cac971ffb798d30c99.zip
[Parser] Avoid calling `strtod` on NaNs entirely (#5316)
MSVC's implementation of `strtod` doesn't return a negative Nan for "-nan", so we already had a workaround to explicitly handle that case without calling `strtod`. Unfortunately the workaround was not used for negative NaNs with payloads, so there were still bugs. Fix the problem and make the code even more portable by avoiding `strtod` completely for any kind of nan, positive or negative, with or without payload.
Diffstat (limited to 'src/wasm2js.h')
0 files changed, 0 insertions, 0 deletions