summaryrefslogtreecommitdiff
path: root/src/lcorolib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lcorolib.c')
-rw-r--r--src/lcorolib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lcorolib.c b/src/lcorolib.c
index 981ca381..0edde26d 100644
--- a/src/lcorolib.c
+++ b/src/lcorolib.c
@@ -1,5 +1,5 @@
/*
-** $Id: lcorolib.c,v 1.2 2010/07/02 11:38:13 roberto Exp $
+** $Id: lcorolib.c,v 1.3 2011/08/23 17:24:34 roberto Exp $
** Coroutine Library
** See Copyright Notice in lua.h
*/
@@ -28,7 +28,7 @@ static int auxresume (lua_State *L, lua_State *co, int narg) {
return -1; /* error flag */
}
lua_xmove(L, co, narg);
- status = lua_resume(co, narg);
+ status = lua_resume(co, L, narg);
if (status == LUA_OK || status == LUA_YIELD) {
int nres = lua_gettop(co);
if (!lua_checkstack(L, nres + 1)) {