Recent to maillist directly due to RT problems.
(Well, seems, I send this patch third time :)

On Mon, 5 Mar 2007 13:52:30 -0800 Marko Lindqvist wrote:

> On 3/5/07, Marko Lindqvist <cazfi74@> wrote:
> >
> >  --enable-debug cannot be used at 64bit system, since:
> >
> > ../../../../src.patched/dependencies/lua/src/ltable.c: In function
> > 'luaH_mainposition':../../../../src.patched/dependencies/lua/src/ltable.c:108:
> > warning: cast from pointer to integer of different size
> > ../../../../src.patched/dependencies/lua/src/ltable.c:110: warning:
> > cast from pointer to integer of different size
>  When I updated lua to 5.1.1, I didn't got this error while compiling lua.
>  But tolua did not compile against lua-5.1.1. I even got latest
> version of tolua (which version we are using? Version number is not in
> any obvious place)
>  I tested also lua-5.0.3, but original problem is present there.

Since I become an x86_64 PC owner, I use following dirty and ugly hack
(attached.) In theory, it may causes troubles, but I don't have them (yet.)

Thanks, evyscr

Index: dependencies/lua/src/llimits.h
--- dependencies/lua/src/llimits.h	(revision 13411)
+++ dependencies/lua/src/llimits.h	(working copy)
@@ -41,9 +41,9 @@
 /* an unsigned integer to hold hash values */
-typedef unsigned int lu_hash;
+typedef unsigned long lu_hash;
 /* its signed equivalent */
-typedef int ls_hash;
+typedef long ls_hash;
 /* an unsigned integer big enough to count the total memory used by Lua; */
 /* it should be at least as large as size_t */
Freeciv-dev mailing list

Reply via email to