aboutsummaryrefslogtreecommitdiff
path: root/ldo.c
diff options
context:
space:
mode:
Diffstat (limited to 'ldo.c')
-rw-r--r--ldo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ldo.c b/ldo.c
index 077109c4..2a98c397 100644
--- a/ldo.c
+++ b/ldo.c
@@ -521,7 +521,7 @@ void luaD_call (lua_State *L, StkId func, int nresults) {
521*/ 521*/
522void luaD_callnoyield (lua_State *L, StkId func, int nResults) { 522void luaD_callnoyield (lua_State *L, StkId func, int nResults) {
523 incXCcalls(L); 523 incXCcalls(L);
524 if (getCcalls(L) >= LUAI_MAXCCALLS) /* possible stack overflow? */ 524 if (getCcalls(L) >= LUAI_MAXCSTACK) /* possible stack overflow? */
525 luaE_freeCI(L); 525 luaE_freeCI(L);
526 luaD_call(L, func, nResults); 526 luaD_call(L, func, nResults);
527 decXCcalls(L); 527 decXCcalls(L);
@@ -673,7 +673,7 @@ LUA_API int lua_resume (lua_State *L, lua_State *from, int nargs,
673 L->nCcalls = 1; 673 L->nCcalls = 1;
674 else /* correct 'nCcalls' for this thread */ 674 else /* correct 'nCcalls' for this thread */
675 L->nCcalls = getCcalls(from) - from->nci + L->nci + CSTACKCF; 675 L->nCcalls = getCcalls(from) - from->nci + L->nci + CSTACKCF;
676 if (L->nCcalls >= LUAI_MAXCCALLS) 676 if (L->nCcalls >= LUAI_MAXCSTACK)
677 return resume_error(L, "C stack overflow", nargs); 677 return resume_error(L, "C stack overflow", nargs);
678 luai_userstateresume(L, nargs); 678 luai_userstateresume(L, nargs);
679 api_checknelems(L, (L->status == LUA_OK) ? nargs + 1 : nargs); 679 api_checknelems(L, (L->status == LUA_OK) ? nargs + 1 : nargs);