[aquaria] [PATCH] Variable type changes and extra include file for compiling in Linux (and probably Mac)
Ryan C. Gordon
icculus at icculus.org
Sat Jun 5 13:33:36 EDT 2010
> I'm not sure this is the right fix. In some platforms, int is the
> right choice, and it's not necessarily the best idea to always use
> long or int. Thankfully, C provides the uintptr_t typedef for just
> this purpose which I used in my patch.
Again, this won't work either; Lua stores numbers as 64-bit doubles,
which means it's not safe to store 64-bit pointers in them.
These pointers will have to become lightuserdata, and the Lua scripts
will need to be fixed to not compare them against zero.
More information about the aquaria