haxe icon indicating copy to clipboard operation
haxe copied to clipboard

[cpp] Inconsistent overflow behavior for Int32

Open flashultra opened this issue 3 years ago • 0 comments

The problem is only with cpp target when test via Github actions ( https://github.com/HaxeFoundation/haxe/runs/7947619714?check_suite_focus=true#step:12:2762 ) . It's not possible to repeat it on my PC. Here is the code

var x:Int32 = 257 * 0x01010101;  // 257 * 16843009

The result in hex is "0001 0202 0201" which should be "0202 0201" ( correct for all target except cpp) Cpp target return "FFFF 8000 0000"

flashultra avatar Aug 22 '22 10:08 flashultra