diff options
Diffstat (limited to 'lvm.c')
-rw-r--r-- | lvm.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lvm.c,v 1.90 2000/03/03 14:58:26 roberto Exp roberto $ | 2 | ** $Id: lvm.c,v 1.93 2000/03/09 13:57:37 roberto Exp roberto $ |
3 | ** Lua virtual machine | 3 | ** Lua virtual machine |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -360,6 +360,7 @@ StkId luaV_execute (lua_State *L, const Closure *cl, const TProtoFunc *tf, | |||
360 | 360 | ||
361 | case PUSHNIL: { | 361 | case PUSHNIL: { |
362 | int n = GETARG_U(i); | 362 | int n = GETARG_U(i); |
363 | LUA_ASSERT(L, n>0, "invalid argument"); | ||
363 | do { | 364 | do { |
364 | ttype(top++) = LUA_T_NIL; | 365 | ttype(top++) = LUA_T_NIL; |
365 | } while (--n > 0); | 366 | } while (--n > 0); |