diff options
author | Mike Pall <mike> | 2016-06-27 14:10:39 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2016-06-27 14:10:39 +0200 |
commit | ce30766b67a36e76acd321d69cbd2b0db9c89ee0 (patch) | |
tree | e55f86b4fd22130c9d8dbe410a03ec33f8ccda8f | |
parent | 287a5347cfe452d44748327fb7c27f6ce57f5dc2 (diff) | |
parent | aef4edddbabb9b510541abd131f9298a25a52e7d (diff) | |
download | luajit-ce30766b67a36e76acd321d69cbd2b0db9c89ee0.tar.gz luajit-ce30766b67a36e76acd321d69cbd2b0db9c89ee0.tar.bz2 luajit-ce30766b67a36e76acd321d69cbd2b0db9c89ee0.zip |
Merge branch 'master' into v2.1
-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 610c8614..5df4c6ec 100644 --- a/src/lj_parse.c +++ b/src/lj_parse.c | |||
@@ -2177,6 +2177,8 @@ static void assign_adjust(LexState *ls, BCReg nvars, BCReg nexps, ExpDesc *e) | |||
2177 | bcemit_nil(fs, reg, (BCReg)extra); | 2177 | bcemit_nil(fs, reg, (BCReg)extra); |
2178 | } | 2178 | } |
2179 | } | 2179 | } |
2180 | if (nexps > nvars) | ||
2181 | ls->fs->freereg -= nexps - nvars; /* Drop leftover regs. */ | ||
2180 | } | 2182 | } |
2181 | 2183 | ||
2182 | /* Recursively parse assignment statement. */ | 2184 | /* Recursively parse assignment statement. */ |
@@ -2210,8 +2212,6 @@ static void parse_assignment(LexState *ls, LHSVarList *lh, BCReg nvars) | |||
2210 | return; | 2212 | return; |
2211 | } | 2213 | } |
2212 | assign_adjust(ls, nvars, nexps, &e); | 2214 | assign_adjust(ls, nvars, nexps, &e); |
2213 | if (nexps > nvars) | ||
2214 | ls->fs->freereg -= nexps - nvars; /* Drop leftover regs. */ | ||
2215 | } | 2215 | } |
2216 | /* Assign RHS to LHS and recurse downwards. */ | 2216 | /* Assign RHS to LHS and recurse downwards. */ |
2217 | expr_init(&e, VNONRELOC, ls->fs->freereg-1); | 2217 | expr_init(&e, VNONRELOC, ls->fs->freereg-1); |