lua-users home
lua-l archive

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


> > >   luaL_argcheck(L, up - low + 1 <= L_RANDMAX, 1, "interval too large");
> 
> up - low isn't representable when the difference is greater than
> LUA_MAXINTEGER.

we have to cast all operands to LUA_UNSIGNED.

-- Roberto