emscripten
emscripten copied to clipboard
Error with addition of doubles and 64-bit ints
The following test case is a simplified version of an issue found in Qt, described in 1) here. This particular test-case must be compiled with -O0, else the compiler will cheat and calculate the values at compile-time!
https://gist.github.com/4229127
Thanks for filing! Turns out we had nice new shiny code for handling i64-to-double operations, but we didn't use it in all places ;) This is fixed on incoming now, and I added this testcase.