diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-06-03 17:12:50 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-06-03 17:12:50 -0300 |
commit | 94c2449d25d0e00d72c2aa22904d6ff2cbb11ee2 (patch) | |
tree | e58684fb990562c24a2f8c8a58032dbf45dd7a2d | |
parent | c398a02110d72422f2c2e1168376d751ec1269db (diff) | |
download | lua-94c2449d25d0e00d72c2aa22904d6ff2cbb11ee2.tar.gz lua-94c2449d25d0e00d72c2aa22904d6ff2cbb11ee2.tar.bz2 lua-94c2449d25d0e00d72c2aa22904d6ff2cbb11ee2.zip |
undump may return LUA_ERRRUN
-rw-r--r-- | ldo.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldo.c,v 1.177 2002/05/27 20:35:40 roberto Exp roberto $ | 2 | ** $Id: ldo.c,v 1.178 2002/06/03 17:46:34 roberto Exp roberto $ |
3 | ** Stack and Call structure of Lua | 3 | ** Stack and Call structure of Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -432,10 +432,8 @@ int luaD_protectedparser (lua_State *L, ZIO *z, int bin) { | |||
432 | lua_assert(G(L)->nblocks >= old_blocks); | 432 | lua_assert(G(L)->nblocks >= old_blocks); |
433 | G(L)->GCthreshold += (G(L)->nblocks - old_blocks); | 433 | G(L)->GCthreshold += (G(L)->nblocks - old_blocks); |
434 | } | 434 | } |
435 | else { | 435 | else |
436 | setobj(L->top++, &p.err); | 436 | setobj(L->top++, &p.err); |
437 | lua_assert(status != LUA_ERRRUN); | ||
438 | } | ||
439 | return status; | 437 | return status; |
440 | } | 438 | } |
441 | 439 | ||