diff options
Diffstat (limited to 'lbaselib.c')
-rw-r--r-- | lbaselib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lbaselib.c,v 1.187 2005/12/27 17:10:11 roberto Exp roberto $ | 2 | ** $Id: lbaselib.c,v 1.188 2005/12/29 15:32:11 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 | */ |
@@ -201,7 +201,7 @@ static int luaB_collectgarbage (lua_State *L) { | |||
201 | switch (optsnum[o]) { | 201 | switch (optsnum[o]) { |
202 | case LUA_GCCOUNT: { | 202 | case LUA_GCCOUNT: { |
203 | int b = lua_gc(L, LUA_GCCOUNTB, 0); | 203 | int b = lua_gc(L, LUA_GCCOUNTB, 0); |
204 | lua_pushnumber(L, ((lua_Number)res*1024 + b)/1024); | 204 | lua_pushnumber(L, res + ((lua_Number)b/1024)); |
205 | return 1; | 205 | return 1; |
206 | } | 206 | } |
207 | case LUA_GCSTEP: { | 207 | case LUA_GCSTEP: { |