[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Calling Lua from C
- From: Chris <coderight@...>
- Date: Sat, 8 Oct 2005 22:28:40 -0400
Right, I have Lua compiled with USE_LONG so I'm not using floats.
However, that's a good catch because if I switch the printf to a float
it seems to be correct (the 5 is due to the float encoding).
So the question is, why am I getting a float instead of a long?
On 10/8/05, Rici Lake <firstname.lastname@example.org> wrote:
You should turn on more warnings in your c compiler. A good c compiler
would have told you that you cannot use a %d format code with a
floating-point argument. :)
(I have no idea where the 5 comes from, though. Of course, it very much
depends on the architecture you are using.)