diff options
-rw-r--r-- | lbaselib.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lbaselib.c,v 1.216 2009/07/08 16:06:07 roberto Exp roberto $ | 2 | ** $Id: lbaselib.c,v 1.217 2009/07/15 17:35:20 roberto Exp roberto $ |
3 | ** Basic library | 3 | ** Basic library |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -194,7 +194,8 @@ static int luaB_collectgarbage (lua_State *L) { | |||
194 | case LUA_GCCOUNT: { | 194 | case LUA_GCCOUNT: { |
195 | int b = lua_gc(L, LUA_GCCOUNTB, 0); | 195 | int b = lua_gc(L, LUA_GCCOUNTB, 0); |
196 | lua_pushnumber(L, res + ((lua_Number)b/1024)); | 196 | lua_pushnumber(L, res + ((lua_Number)b/1024)); |
197 | return 1; | 197 | lua_pushinteger(L, b); |
198 | return 2; | ||
198 | } | 199 | } |
199 | case LUA_GCSTEP: { | 200 | case LUA_GCSTEP: { |
200 | lua_pushboolean(L, res); | 201 | lua_pushboolean(L, res); |