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.206 2008/02/25 14:33:57 roberto Exp roberto $ | 2 | ** $Id: lbaselib.c,v 1.207 2008/07/03 14:23:35 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 | */ |
@@ -183,7 +183,7 @@ static int luaB_rawset (lua_State *L) { | |||
183 | 183 | ||
184 | 184 | ||
185 | static int luaB_gcinfo (lua_State *L) { | 185 | static int luaB_gcinfo (lua_State *L) { |
186 | lua_pushinteger(L, lua_getgccount(L)); | 186 | lua_pushinteger(L, lua_gc(L, LUA_GCCOUNT, 0)); |
187 | return 1; | 187 | return 1; |
188 | } | 188 | } |
189 | 189 | ||