diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-02-15 11:18:34 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-02-15 11:18:34 -0300 |
commit | 7237eb3f1c480d6bc7fe2832ddd36f2137fb69d9 (patch) | |
tree | 618bb144df3f37b000fc12db0738a5d3ec3efbef /lapi.c | |
parent | 165389b27bc54e7c5214276db177e3ef75226f18 (diff) | |
download | lua-7237eb3f1c480d6bc7fe2832ddd36f2137fb69d9.tar.gz lua-7237eb3f1c480d6bc7fe2832ddd36f2137fb69d9.tar.bz2 lua-7237eb3f1c480d6bc7fe2832ddd36f2137fb69d9.zip |
Fixed warnings from different compilers
Diffstat (limited to 'lapi.c')
-rw-r--r-- | lapi.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1221,7 +1221,7 @@ LUA_API int lua_gc (lua_State *L, int what, ...) { | |||
1221 | int param = va_arg(argp, int); | 1221 | int param = va_arg(argp, int); |
1222 | int value = va_arg(argp, int); | 1222 | int value = va_arg(argp, int); |
1223 | api_check(L, 0 <= param && param < LUA_GCPN, "invalid parameter"); | 1223 | api_check(L, 0 <= param && param < LUA_GCPN, "invalid parameter"); |
1224 | res = luaO_applyparam(g->gcparams[param], 100); | 1224 | res = cast_int(luaO_applyparam(g->gcparams[param], 100)); |
1225 | if (value >= 0) | 1225 | if (value >= 0) |
1226 | g->gcparams[param] = luaO_codeparam(value); | 1226 | g->gcparams[param] = luaO_codeparam(value); |
1227 | break; | 1227 | break; |