readd missing cast

This commit is contained in:
Alug committed 2025-02-20 21:19:51 +01:00
1 parent 1afb5e5219
commit c711bf42c9
1 file changed
+1 -1
+1 -1
View File
@@ -415,7 +415,7 @@ LUA_API lua_Integer lua_tointeger(lua_State *L, int idx)
if (!(tvisstr(o) && lj_strscan_number(strV(o), &tmp)))
return 0;
if (tvisint(&tmp))
return intV(&tmp);
return (lua_Integer)intV(&tmp);
n = numV(&tmp);
}
#if LJ_64