lua-users home
lua-l archive

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


> >-     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