aboutsummaryrefslogtreecommitdiff
path: root/lbaselib.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lbaselib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lbaselib.c b/lbaselib.c
index a7b6c3ed..b296c4b7 100644
--- a/lbaselib.c
+++ b/lbaselib.c
@@ -216,7 +216,7 @@ static int luaB_collectgarbage (lua_State *L) {
216 } 216 }
217 case LUA_GCSTEP: { 217 case LUA_GCSTEP: {
218 lua_Integer n = luaL_optinteger(L, 2, 0); 218 lua_Integer n = luaL_optinteger(L, 2, 0);
219 int res = lua_gc(L, o, (int)n); 219 int res = lua_gc(L, o, cast_sizet(n));
220 checkvalres(res); 220 checkvalres(res);
221 lua_pushboolean(L, res); 221 lua_pushboolean(L, res);
222 return 1; 222 return 1;