mirror of
https://github.com/bol-van/zapret2.git
synced 2026-03-22 01:05:48 +00:00
AI inspired fixes
This commit is contained in:
@@ -177,7 +177,7 @@ static int luacall_bitget(lua_State *L)
|
||||
if (from<0 || to<0 || from>to || from>47 || to>47)
|
||||
luaL_error(L, "bit range invalid");
|
||||
|
||||
what = (what >> from) & ~((lua_Integer)-1 << (to-from+1));
|
||||
what = (what >> from) & ~((uint64_t)-1 << (to-from+1));
|
||||
|
||||
lua_pushlint(L,what);
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user