aboutsummaryrefslogtreecommitdiff
path: root/lbaselib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lbaselib.c')
-rw-r--r--lbaselib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lbaselib.c b/lbaselib.c
index 05b08b7f..4c49f5eb 100644
--- a/lbaselib.c
+++ b/lbaselib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lbaselib.c,v 1.114 2002/12/04 17:38:31 roberto Exp roberto $ 2** $Id: lbaselib.c,v 1.115 2002/12/06 17:05:15 roberto Exp roberto $
3** Basic library 3** Basic library
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -540,7 +540,7 @@ static int auxresume (lua_State *L, lua_State *co, int narg) {
540 status = lua_resume(co, narg); 540 status = lua_resume(co, narg);
541 if (status == 0) { 541 if (status == 0) {
542 int nres = lua_gettop(co); 542 int nres = lua_gettop(co);
543 if (!lua_checkstack(L, narg)) 543 if (!lua_checkstack(L, nres))
544 luaL_error(L, "too many results to resume"); 544 luaL_error(L, "too many results to resume");
545 lua_xmove(co, L, nres); /* move yielded values */ 545 lua_xmove(co, L, nres); /* move yielded values */
546 return nres; 546 return nres;