small problems with 'luaone.c'

This commit is contained in:
Roberto Ierusalimschy
2011-02-28 14:32:10 -03:00
parent 7482e8f914
commit 98816d0ce5
5 changed files with 16 additions and 11 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lbaselib.c,v 1.258 2011/01/07 12:41:48 roberto Exp roberto $
** $Id: lbaselib.c,v 1.259 2011/01/26 16:30:02 roberto Exp roberto $
** Basic library
** See Copyright Notice in lua.h
*/
@@ -395,7 +395,7 @@ static int luaB_select (lua_State *L) {
static int pcallcont (lua_State *L) {
int errfunc; /* call has an error function in bottom of the stack */
int errfunc = 0; /* =0 to avoid warnings */
int status = lua_getctx(L, &errfunc);
lua_assert(status != LUA_OK);
lua_pushboolean(L, (status == LUA_YIELD)); /* first result (status) */