Skip to content

Commit

Permalink
Fix for issue 11888 (#11889)
Browse files Browse the repository at this point in the history
  • Loading branch information
flashultra authored Dec 17, 2024
1 parent fa2faa1 commit a1b1ace
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions std/lua/_lua/_hx_bit.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ end
_hx_bit.bor = function(...) return _hx_bit_clamp(_hx_bit_raw.bor(...)) end
_hx_bit.band = function(...) return _hx_bit_clamp(_hx_bit_raw.band(...)) end
_hx_bit.arshift = function(...) return _hx_bit_clamp(_hx_bit_raw.arshift(...)) end
_hx_bit.lshift = function(...) return _hx_bit_clamp(_hx_bit_raw.lshift(...)) end
11 changes: 11 additions & 0 deletions tests/unit/src/unit/issues/Issue11888.hx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package unit.issues;

import haxe.Int64;

class Issue11888 extends unit.Test {
public function test() {
var n:Int64 = Int64.make(0,-1);
var result:Int64 = Int64.shl(n,1);
eq(-2, result.low);
}
}

0 comments on commit a1b1ace

Please sign in to comment.