From b3f81f1d1d3d7c6fd5787cb292a9a6bd3f0a361a Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 14 Oct 2005 13:23:33 -0300 Subject: small bug when debugging dead threads --- ldo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ldo.c b/ldo.c index 36e8af18..3cecc85b 100644 --- a/ldo.c +++ b/ldo.c @@ -1,5 +1,5 @@ /* -** $Id: ldo.c,v 2.33 2005/09/09 18:16:28 roberto Exp roberto $ +** $Id: ldo.c,v 2.34 2005/10/06 20:44:22 roberto Exp roberto $ ** Stack and Call structure of Lua ** See Copyright Notice in lua.h */ @@ -426,6 +426,7 @@ LUA_API int lua_resume (lua_State *L, int nargs) { if (status != 0) { /* error? */ L->status = cast(lu_byte, status); /* mark thread as `dead' */ luaD_seterrorobj(L, status, L->top); + L->ci->top = L->top; } else status = L->status; -- cgit v1.2.3-55-g6feb