lua-users home
lua-l archive

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


Roberto Ierusalimschy wrote:

> May this be a bug in the macro lua_number2integer (used by
> lua_tointeger)?

Yes. By defining lua_number2integer the "slow" way, that is,

  #define lua_number2integer(i,d) ((i)=(lua_Integer)(d))

the problems I encountered with Visual C++ (version 6.0) were cleared
up.

--
Kurt Jung