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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user