This commit is contained in:
Roberto Ierusalimschy 2005-10-06 17:44:22 -03:00
parent 0fa9b16148
commit 37b49aa451
1 changed files with 4 additions and 6 deletions

10
ldo.c
View File

@ -1,5 +1,5 @@
/*
** $Id: ldo.c,v 2.32 2005/08/24 16:15:49 roberto Exp roberto $
** $Id: ldo.c,v 2.33 2005/09/09 18:16:28 roberto Exp roberto $
** Stack and Call structure of Lua
** See Copyright Notice in lua.h
*/
@ -316,14 +316,12 @@ int luaD_precall (lua_State *L, StkId func, int nresults) {
lua_unlock(L);
n = (*curr_func(L)->c.f)(L); /* do the actual call */
lua_lock(L);
if (n >= 0) { /* no yielding? */
if (n < 0) /* yielding? */
return PCRYIELD;
else {
luaD_poscall(L, L->top - n);
return PCRC;
}
else {
ci->nresults = nresults;
return PCRYIELD;
}
}
}