[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: -DUSE_FLOAT gotchas?
- From: "Adam D. Moss" <adam@...>
- Date: Tue, 06 May 2003 13:16:25 +0100
I recently tried compiling lua with:
NUMBER= -DLUA_USER_H='"../etc/luser_number.h"' -DUSE_FLOAT
Now, after rebuilding my app with this lua, a lot (but not all)
of my 3d objects' colours, vertex positions etc. are very wrong
(these are being set/generated from lua scripts).
I can't see anything in my lua->C interface functions that is
doing anything that would be upset by luaL_checknumber() or
lua_tonumber() returning a float instead of a double. Also,
the numeric processing at the lua side is very light, so I
don't see how increased error from shorter floats would be
causing the problems.
Are there any hidden gotchas with using -DUSE_FLOAT ? Am I supposed
to define or include anything new at my C application side?
Adam D. Moss . ,,^^ email@example.com http://www.foxbox.org/ co:3
Bereaved relatives are not amused
As on their dear departed I feverishly consume