diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-10-14 13:23:33 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-10-14 13:23:33 -0300 |
commit | b3f81f1d1d3d7c6fd5787cb292a9a6bd3f0a361a (patch) | |
tree | fdc64e988f37a232ac2da6c78583312b1e327b59 | |
parent | a24eb3ef17c7c770cd2ba972b15fbc68760c1077 (diff) | |
download | lua-b3f81f1d1d3d7c6fd5787cb292a9a6bd3f0a361a.tar.gz lua-b3f81f1d1d3d7c6fd5787cb292a9a6bd3f0a361a.tar.bz2 lua-b3f81f1d1d3d7c6fd5787cb292a9a6bd3f0a361a.zip |
small bug when debugging dead threads
-rw-r--r-- | ldo.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldo.c,v 2.33 2005/09/09 18:16:28 roberto Exp roberto $ | 2 | ** $Id: ldo.c,v 2.34 2005/10/06 20:44:22 roberto Exp roberto $ |
3 | ** Stack and Call structure of Lua | 3 | ** Stack and Call structure of Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -426,6 +426,7 @@ LUA_API int lua_resume (lua_State *L, int nargs) { | |||
426 | if (status != 0) { /* error? */ | 426 | if (status != 0) { /* error? */ |
427 | L->status = cast(lu_byte, status); /* mark thread as `dead' */ | 427 | L->status = cast(lu_byte, status); /* mark thread as `dead' */ |
428 | luaD_seterrorobj(L, status, L->top); | 428 | luaD_seterrorobj(L, status, L->top); |
429 | L->ci->top = L->top; | ||
429 | } | 430 | } |
430 | else | 431 | else |
431 | status = L->status; | 432 | status = L->status; |