lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


>> [...]
>> ..........
>>         for (j = 0; j < b; j++) {
>
> [...]
>
> When GETARG_B(i) is 1, b = 0 and the loop iterates once only, for one 
> value. So, A+B-1 = A+1-1 = A.

Is that right? It seems that when b = 0 the loop does not iterate 
at all (as 0 < 0 is false).

-- Roberto