From 8103a026896ee5425666fd1fcee374533ce87342 Mon Sep 17 00:00:00 2001 From: bol-van Date: Mon, 29 Dec 2025 19:14:25 +0300 Subject: [PATCH] nfqws2: fix wrong bitset on 32-bit platforms --- nfq2/lua.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nfq2/lua.c b/nfq2/lua.c index 0e8fc6a..a0434e9 100644 --- a/nfq2/lua.c +++ b/nfq2/lua.c @@ -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;