HaxeFoundation / HaxeFoundation/haxe
[php] Wrong bitwise shift left
Open
feature-coretype
platform-php
- Dominant language
- Haxe
- Stars
- 6.9k
- Forks
- 715
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 11
Description
The following code return -1214 on php target and correct one 1534352194 on macro and js target :
``` haxe
var x = -344720798+1480740470+1886350957;
var m = (x << 12) | (x >>> 20 );
trace("m = "+m);
```
Or here : https://try.haxe.org/#50f85
Contributor guide
Assessment
This issue has not been assessed yet.