[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: comment error about OP_VARARG in lopcodes.h
- From: VirusCamp <viruscamp@...>
- Date: Fri, 23 Oct 2009 09:55:56 +0800
Hi,
I'm working on luadec, but got confused about OP_VARARG in lua-5.1.4.
I think the comment is wrong, that should be R(A), R(A+1), ...,
R(A+B-2) = vararg
lopcodes.h line 210
OP_VARARG/* A B R(A), R(A+1), ..., R(A+B-1) = vararg */
lvm.c line 751
case OP_VARARG: {
int b = GETARG_B(i) - 1;
..........
for (j = 0; j < b; j++) {