diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-02-28 14:32:10 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-02-28 14:32:10 -0300 |
commit | 98816d0ce58db9e817129b076723187d690501df (patch) | |
tree | b8cab039ba8aecb51453206447890c05cb618b34 /lbaselib.c | |
parent | 7482e8f914fbf198af02c2970cf0aadd80740f92 (diff) | |
download | lua-98816d0ce58db9e817129b076723187d690501df.tar.gz lua-98816d0ce58db9e817129b076723187d690501df.tar.bz2 lua-98816d0ce58db9e817129b076723187d690501df.zip |
small problems with 'luaone.c'
Diffstat (limited to 'lbaselib.c')
-rw-r--r-- | lbaselib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lbaselib.c,v 1.258 2011/01/07 12:41:48 roberto Exp roberto $ | 2 | ** $Id: lbaselib.c,v 1.259 2011/01/26 16:30:02 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 | */ |
@@ -395,7 +395,7 @@ static int luaB_select (lua_State *L) { | |||
395 | 395 | ||
396 | 396 | ||
397 | static int pcallcont (lua_State *L) { | 397 | static int pcallcont (lua_State *L) { |
398 | int errfunc; /* call has an error function in bottom of the stack */ | 398 | int errfunc = 0; /* =0 to avoid warnings */ |
399 | int status = lua_getctx(L, &errfunc); | 399 | int status = lua_getctx(L, &errfunc); |
400 | lua_assert(status != LUA_OK); | 400 | lua_assert(status != LUA_OK); |
401 | lua_pushboolean(L, (status == LUA_YIELD)); /* first result (status) */ | 401 | lua_pushboolean(L, (status == LUA_YIELD)); /* first result (status) */ |