diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-03-10 11:38:10 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-03-10 11:38:10 -0300 |
| commit | 3d0577f4b98908be3f2d697ab75c5fbbd3f6999b (patch) | |
| tree | 61930565ff1b3db7b20e491071a319e5ad1ea0b9 /lvm.c | |
| parent | 977b8f65f05b311e80bb3344e8529f26e3721bbd (diff) | |
| download | lua-3d0577f4b98908be3f2d697ab75c5fbbd3f6999b.tar.gz lua-3d0577f4b98908be3f2d697ab75c5fbbd3f6999b.tar.bz2 lua-3d0577f4b98908be3f2d697ab75c5fbbd3f6999b.zip | |
small optimizations.
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); |
