diff options
Diffstat (limited to 'lbaselib.c')
| -rw-r--r-- | lbaselib.c | 5 |
1 files changed, 3 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lbaselib.c,v 1.9 2000/10/05 12:14:08 roberto Exp roberto $ | 2 | ** $Id: lbaselib.c,v 1.10 2000/10/06 19:13:29 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 | */ |
| @@ -229,7 +229,8 @@ static int luaB_next (lua_State *L) { | |||
| 229 | 229 | ||
| 230 | static int passresults (lua_State *L, int status, int oldtop) { | 230 | static int passresults (lua_State *L, int status, int oldtop) { |
| 231 | static const char *const errornames[] = | 231 | static const char *const errornames[] = |
| 232 | {"ok", "run-time error", "file error", "syntax error", "memory error"}; | 232 | {"ok", "run-time error", "file error", "syntax error", |
| 233 | "memory error", "error in error handling"}; | ||
| 233 | if (status == 0) { | 234 | if (status == 0) { |
| 234 | int nresults = lua_gettop(L) - oldtop; | 235 | int nresults = lua_gettop(L) - oldtop; |
| 235 | if (nresults > 0) | 236 | if (nresults > 0) |
