Perhaps if you print the actual bitpattern at the point of failure you can use that to create a repro case? Without a repro case I think this will be hard to make progress on. Once you have a repro please open an bug report on github.
chers, sam On Tue, Mar 1, 2022 at 8:38 AM Александр Гурьянов <[email protected]> wrote: > 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 > <https://groups.google.com/d/msgid/emscripten-discuss/CAKOm%3DVHMsym8-XQXp7fb5xz7kaG_fV-M19aj-kUzbdAEbxG7Yg%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- 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/CAL_va2_hYHdYk7oercuCm4jHmhfo0tiZqoUM2O%3DTiONbpGsqZg%40mail.gmail.com.
