lua-users home
lua-l archive

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


> If one ignores int-overflow problems, the test can be written
>   if (nelems+inc >= limit) lua_error(...);
> And the problem is more obvious.

Sure. The test could be '>'; so the correct answer is #1.

-- Roberto