lua-users home
lua-l archive

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



The LNUM patch has improved Lua integer API.


Alex Davies kirjoitti 3.3.2008 kello 22:16:

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