From a7c74c06b9fa05c06710ff3db1f22f68b20acbe9 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 12 Aug 2004 14:02:51 -0300 Subject: small bug: lua_gc(count) was falling through to next option --- lapi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lapi.c') diff --git a/lapi.c b/lapi.c index a21c0c14..985eb3ce 100644 --- a/lapi.c +++ b/lapi.c @@ -1,5 +1,5 @@ /* -** $Id: lapi.c,v 2.14 2004/07/09 14:20:22 roberto Exp roberto $ +** $Id: lapi.c,v 2.15 2004/08/10 19:17:23 roberto Exp roberto $ ** Lua API ** See Copyright Notice in lua.h */ @@ -841,6 +841,7 @@ LUA_API int lua_gc (lua_State *L, int what, int data) { case LUA_GCCOUNT: { /* GC values are expressed in Kbytes: #bytes/2^10 */ res = cast(int, g->nblocks >> 10); + break; } case LUA_GCSTEP: { lu_mem a = (cast(lu_mem, data) << 10); -- cgit v1.2.3-55-g6feb