lua-users home
lua-l archive

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


They also don't check that there's no fractional component either. This is not an accident - checkint is the fastest way to get (and check) an integer out of Lua. If your application requires additional range and/or fractional checks, go for your life =).

- Alex

----- Original Message ----- From: "Norman Ramsey"

It would be good if in Lua 5.2 it were documented that
luaL_checkint and luaL_checkinteger don't check for overflow.
It would be even better if they checked for overflow.


Norman