diff options
Diffstat (limited to '')
-rw-r--r-- | src/lj_parse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lj_parse.c b/src/lj_parse.c index d3e7a1c6..9891897e 100644 --- a/src/lj_parse.c +++ b/src/lj_parse.c | |||
@@ -670,8 +670,8 @@ static void bcemit_method(FuncState *fs, ExpDesc *e, ExpDesc *key) | |||
670 | bcemit_ABC(fs, BC_TGETS, func, obj, idx); | 670 | bcemit_ABC(fs, BC_TGETS, func, obj, idx); |
671 | } else { | 671 | } else { |
672 | bcreg_reserve(fs, 3+LJ_FR2); | 672 | bcreg_reserve(fs, 3+LJ_FR2); |
673 | bcemit_AD(fs, BC_KSTR, func+2, idx); | 673 | bcemit_AD(fs, BC_KSTR, func+2+LJ_FR2, idx); |
674 | bcemit_ABC(fs, BC_TGETV, func, obj, func+2); | 674 | bcemit_ABC(fs, BC_TGETV, func, obj, func+2+LJ_FR2); |
675 | fs->freereg--; | 675 | fs->freereg--; |
676 | } | 676 | } |
677 | e->u.s.info = func; | 677 | e->u.s.info = func; |