lua-users home
lua-l archive

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

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 <> 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.)