mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Update tests/conformance/bitwise.lua
Use byteswap(-1) to validate bit32 semantics for signed integers
This commit is contained in:
parent
0cc649ce08
commit
c255dbc3c3
1 changed files with 1 additions and 1 deletions
|
@ -137,7 +137,7 @@ assert(bit32.countrz(0x7fffffff) == 0)
|
|||
-- testing byteswap
|
||||
assert(bit32.byteswap(0x10203040) == 0x40302010)
|
||||
assert(bit32.byteswap(0) == 0)
|
||||
assert(bit32.byteswap(0xffffffff) == 0xffffffff)
|
||||
assert(bit32.byteswap(-1) == 0xffffffff)
|
||||
|
||||
--[[
|
||||
This test verifies a fix in luauF_replace() where if the 4th
|
||||
|
|
Loading…
Add table
Reference in a new issue