Fixed warnings from different compilers

This commit is contained in:
Roberto Ierusalimschy
2024-02-15 11:18:34 -03:00
parent 165389b27b
commit 7237eb3f1c
4 changed files with 10 additions and 6 deletions

2
lapi.c
View File

@@ -1221,7 +1221,7 @@ LUA_API int lua_gc (lua_State *L, int what, ...) {
int param = va_arg(argp, int);
int value = va_arg(argp, int);
api_check(L, 0 <= param && param < LUA_GCPN, "invalid parameter");
res = luaO_applyparam(g->gcparams[param], 100);
res = cast_int(luaO_applyparam(g->gcparams[param], 100));
if (value >= 0)
g->gcparams[param] = luaO_codeparam(value);
break;