diff options
Diffstat (limited to 'lcode.c')
-rw-r--r-- | lcode.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -763,7 +763,7 @@ void luaK_dischargevars (FuncState *fs, expdesc *e) { | |||
763 | break; | 763 | break; |
764 | } | 764 | } |
765 | case VLOCAL: { /* already in a register */ | 765 | case VLOCAL: { /* already in a register */ |
766 | e->u.info = e->u.var.sidx; | 766 | e->u.info = e->u.var.ridx; |
767 | e->k = VNONRELOC; /* becomes a non-relocatable value */ | 767 | e->k = VNONRELOC; /* becomes a non-relocatable value */ |
768 | break; | 768 | break; |
769 | } | 769 | } |
@@ -1036,7 +1036,7 @@ void luaK_storevar (FuncState *fs, expdesc *var, expdesc *ex) { | |||
1036 | switch (var->k) { | 1036 | switch (var->k) { |
1037 | case VLOCAL: { | 1037 | case VLOCAL: { |
1038 | freeexp(fs, ex); | 1038 | freeexp(fs, ex); |
1039 | exp2reg(fs, ex, var->u.var.sidx); /* compute 'ex' into proper place */ | 1039 | exp2reg(fs, ex, var->u.var.ridx); /* compute 'ex' into proper place */ |
1040 | return; | 1040 | return; |
1041 | } | 1041 | } |
1042 | case VUPVAL: { | 1042 | case VUPVAL: { |
@@ -1276,7 +1276,7 @@ void luaK_indexed (FuncState *fs, expdesc *t, expdesc *k) { | |||
1276 | } | 1276 | } |
1277 | else { | 1277 | else { |
1278 | /* register index of the table */ | 1278 | /* register index of the table */ |
1279 | t->u.ind.t = (t->k == VLOCAL) ? t->u.var.sidx: t->u.info; | 1279 | t->u.ind.t = (t->k == VLOCAL) ? t->u.var.ridx: t->u.info; |
1280 | if (isKstr(fs, k)) { | 1280 | if (isKstr(fs, k)) { |
1281 | t->u.ind.idx = k->u.info; /* literal string */ | 1281 | t->u.ind.idx = k->u.info; /* literal string */ |
1282 | t->k = VINDEXSTR; | 1282 | t->k = VINDEXSTR; |