diff options
Diffstat (limited to 'lvm.c')
-rw-r--r-- | lvm.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lvm.c,v 2.234 2015/02/05 17:15:33 roberto Exp roberto $ | 2 | ** $Id: lvm.c,v 2.235 2015/02/20 14:27: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 | */ |
@@ -1040,7 +1040,7 @@ void luaV_execute (lua_State *L) { | |||
1040 | lua_Integer limit = ivalue(ra + 1); | 1040 | lua_Integer limit = ivalue(ra + 1); |
1041 | if ((0 < step) ? (idx <= limit) : (limit <= idx)) { | 1041 | if ((0 < step) ? (idx <= limit) : (limit <= idx)) { |
1042 | ci->u.l.savedpc += GETARG_sBx(i); /* jump back */ | 1042 | ci->u.l.savedpc += GETARG_sBx(i); /* jump back */ |
1043 | setivalue(ra, idx); /* update internal index... */ | 1043 | chgivalue(ra, idx); /* update internal index... */ |
1044 | setivalue(ra + 3, idx); /* ...and external index */ | 1044 | setivalue(ra + 3, idx); /* ...and external index */ |
1045 | } | 1045 | } |
1046 | } | 1046 | } |
@@ -1051,7 +1051,7 @@ void luaV_execute (lua_State *L) { | |||
1051 | if (luai_numlt(0, step) ? luai_numle(idx, limit) | 1051 | if (luai_numlt(0, step) ? luai_numle(idx, limit) |
1052 | : luai_numle(limit, idx)) { | 1052 | : luai_numle(limit, idx)) { |
1053 | ci->u.l.savedpc += GETARG_sBx(i); /* jump back */ | 1053 | ci->u.l.savedpc += GETARG_sBx(i); /* jump back */ |
1054 | setfltvalue(ra, idx); /* update internal index... */ | 1054 | chgfltvalue(ra, idx); /* update internal index... */ |
1055 | setfltvalue(ra + 3, idx); /* ...and external index */ | 1055 | setfltvalue(ra + 3, idx); /* ...and external index */ |
1056 | } | 1056 | } |
1057 | } | 1057 | } |