diff options
Diffstat (limited to 'lcorolib.c')
-rw-r--r-- | lcorolib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lcorolib.c,v 1.1 2010/06/10 21:30:26 roberto Exp roberto $ | 2 | ** $Id: lcorolib.c,v 1.2 2010/07/02 11:38:13 roberto Exp roberto $ |
3 | ** Coroutine Library | 3 | ** Coroutine Library |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -28,7 +28,7 @@ static int auxresume (lua_State *L, lua_State *co, int narg) { | |||
28 | return -1; /* error flag */ | 28 | return -1; /* error flag */ |
29 | } | 29 | } |
30 | lua_xmove(L, co, narg); | 30 | lua_xmove(L, co, narg); |
31 | status = lua_resume(co, narg); | 31 | status = lua_resume(co, L, narg); |
32 | if (status == LUA_OK || status == LUA_YIELD) { | 32 | if (status == LUA_OK || status == LUA_YIELD) { |
33 | int nres = lua_gettop(co); | 33 | int nres = lua_gettop(co); |
34 | if (!lua_checkstack(L, nres + 1)) { | 34 | if (!lua_checkstack(L, nres + 1)) { |