[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Bug in Lua when using signed long
- From: Mark Hamburg <mark@...>
- Date: Sun, 13 Dec 2009 10:09:28 -0800
Having lua_pushinteger work with ptrdiff_t is convenient and it would be much less convenient if it took something considerably shorter. The "problem" is that there isn't a standard numeric type which means "an integer that fits exactly within a double".
I could see having versions of the APIs -- possibly in lauxlib -- which actually check things like pushed integers being in range, retrieved numbers actually being integers, etc..
Mark