[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: OP_CONCAT in lvm.c
- From: Dibyendu Majumdar <mobile@...>
- Date: Sat, 28 Mar 2015 13:14:14 +0000
Hi,
In the implementation of OP_CONCAT in lvm.c (shown below):
vmcase(OP_CONCAT) {
int b = GETARG_B(i);
int c = GETARG_C(i);
StkId rb;
L->top = base + c + 1; /* mark the end of concat operands */
Protect(luaV_concat(L, c - b + 1));
ra = RA(i); /* 'luav_concat' may invoke TMs and move the stack */
--> rb = b + base;
setobjs2s(L, ra, rb);
checkGC(L, (ra >= rb ? ra + 1 : rb));
L->top = ci->top; /* restore top */
vmbreak;
}
Should the line marked by arrow not be following?
rb = base + b
Regards
Dibyendu