Hi,  I faced problem that std::isnan return false for NAN. I added this
debug printf to my project:

printf("res %.2f %s %s\n", res,
           std::isnan(res) ? "isnan" : "notnan",
           std::isinf(res) ? "isinf" : "notinf");

and when res is NAN, output is following:

res nan notnan notinf

I tried to make a simple test case, but in test case it works fine. So, I
think this is a sort of UB, but I run project with valgrind - no errors. I
tried -s ASSERTIONS=1 -s SAFE_HEAP=2, also no errors.

Any suggestions what it can be?

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/CAKOm%3DVHMsym8-XQXp7fb5xz7kaG_fV-M19aj-kUzbdAEbxG7Yg%40mail.gmail.com.

Reply via email to