Template
1
0
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:
bol-van
2026-01-16 16:17:34 +03:00
parent 65f6923383
commit 681c53c3b4
7 changed files with 16 additions and 16 deletions

View File

@@ -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;