[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Iterate over vararg
- From: Roberto Ierusalimschy <roberto@...>
- Date: Fri, 21 Dec 2018 15:26:37 -0200
> >- if (!lua_isnone(L, lua_upvalueindex(i))) {
> >+ if (0 < i <= 256 && !lua_isnone(L, lua_upvalueindex(i))) {
> >
> >
>
> I don't think the expression (0 < i <= 256) does what you expect in C. Do
> you mean ((i > 0) && (i <= 256)), or perhaps this was intended as
> psuedo-code?
No excuses. My bad :-)
-- Roberto