-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hashlink floating point exception with remainder operator #730
Comments
In this case floating point exception actually means integer overflow. |
I confirm that it's an integer overflow, and can be reproduce with hl/c too if the optimization is disabled.
|
Interesting, that's a new class of exception that I just learnt. |
I can't see a case where |
Nicolas explained to me x) OSMod: OSDiv can be triggered with the following code: static function main() {
var x = -1 << 31;
var y = -1;
var z = Std.int(x / y);
trace(z);
} |
Haxe nightly: c4868e5
Hashlink: 1.14.0
The text was updated successfully, but these errors were encountered: