This commit is contained in:
Roberto Ierusalimschy
2006-01-18 09:49:12 -02:00
parent 440113bbe8
commit baffc37f5c
3 changed files with 9 additions and 8 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lbaselib.c,v 1.187 2005/12/27 17:10:11 roberto Exp roberto $
** $Id: lbaselib.c,v 1.188 2005/12/29 15:32:11 roberto Exp roberto $
** Basic library
** See Copyright Notice in lua.h
*/
@@ -201,7 +201,7 @@ static int luaB_collectgarbage (lua_State *L) {
switch (optsnum[o]) {
case LUA_GCCOUNT: {
int b = lua_gc(L, LUA_GCCOUNTB, 0);
lua_pushnumber(L, ((lua_Number)res*1024 + b)/1024);
lua_pushnumber(L, res + ((lua_Number)b/1024));
return 1;
}
case LUA_GCSTEP: {