summaryrefslogtreecommitdiff
path: root/src/lcorolib.c
diff options
context:
space:
mode:
authorLua Team <team@lua.org>2011-11-24 12:00:00 +0000
committerrepogen <>2011-11-24 12:00:00 +0000
commit2e5ae8240bb2daf5d66d69e199de10dde62f5d13 (patch)
treeb9f21bdd5006c59adc99000afa3cf22da8ea1c57 /src/lcorolib.c
parentc17c598e967843fa77a465caf0e0df15d9019409 (diff)
downloadlua-github-5.2.0-rc1.tar.gz
Lua 5.2.0-rc15.2.0-rc1
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)) {