Template
1
0
mirror of https://github.com/bol-van/zapret2.git synced 2026-03-19 07:45:49 +00:00

nfqws2: fix wrong bitset on 32-bit platforms

This commit is contained in:
bol-van
2025-12-29 19:14:25 +03:00
parent a2dedc45c0
commit 8103a02689

View File

@@ -193,7 +193,7 @@ static int luacall_bitset(lua_State *L)
if (from>to || from>47 || to>47)
luaL_error(L, "bit range invalid");
lua_Integer mask = ~((lua_Integer)-1 << (to-from+1));
uint64_t mask = ~((uint64_t)-1 << (to-from+1));
set = (set & mask) << from;
mask <<= from;
what = what & ~mask | set;