mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Update VM/src/lbitlib.cpp
This commit is contained in:
parent
c255dbc3c3
commit
f840c52f3d
1 changed files with 1 additions and 1 deletions
|
@ -218,7 +218,7 @@ static int b_swap(lua_State* L)
|
||||||
luaL_error(L, "bit32.byteswap isn't enabled");
|
luaL_error(L, "bit32.byteswap isn't enabled");
|
||||||
|
|
||||||
b_uint n = luaL_checkunsigned(L, 1);
|
b_uint n = luaL_checkunsigned(L, 1);
|
||||||
n = (n << 24) | ((n << 8) & 0xff0000) | (n >> 8 & 0xff00) | n >> 24;
|
n = (n << 24) | ((n << 8) & 0xff0000) | ((n >> 8) & 0xff00) | (n >> 24);
|
||||||
|
|
||||||
lua_pushunsigned(L, n);
|
lua_pushunsigned(L, n);
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Add table
Reference in a new issue