diff options
Diffstat (limited to 'lvm.c')
-rw-r--r-- | lvm.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lvm.c,v 2.134 2011/04/07 18:14:12 roberto Exp roberto $ | 2 | ** $Id: lvm.c,v 2.135 2011/04/18 19:48:53 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 | */ |
@@ -541,10 +541,10 @@ void luaV_execute (lua_State *L) { | |||
541 | if (GETARG_C(i)) ci->u.l.savedpc++; /* skip next instruction (if C) */ | 541 | if (GETARG_C(i)) ci->u.l.savedpc++; /* skip next instruction (if C) */ |
542 | ) | 542 | ) |
543 | vmcase(OP_LOADNIL, | 543 | vmcase(OP_LOADNIL, |
544 | TValue *rb = RB(i); | 544 | int b = GETARG_B(i); |
545 | do { | 545 | do { |
546 | setnilvalue(rb--); | 546 | setnilvalue(ra++); |
547 | } while (rb >= ra); | 547 | } while (b--); |
548 | ) | 548 | ) |
549 | vmcase(OP_GETUPVAL, | 549 | vmcase(OP_GETUPVAL, |
550 | int b = GETARG_B(i); | 550 | int b = GETARG_B(i); |