[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Bug in Lua when using signed long
- From: Florian Weimer <fw@...>
- Date: Sun, 13 Dec 2009 15:38:43 +0100
* liam mail:
> So you are saying that a configure script which sets up Lua before compiling
> the library and does not check that types are large enough to pass a
> standard type and retrieve the same type is not a bug?
I think lua_pushinteger is simply not guaranteed to be exact.
(A hypothetical Lua variant with both floating point and arbitrary
precision integers could be interesting. The trouble of doing that
with userdata is that you lose interoperability unless everybody uses
the same library for integers.)