Re: [Freeciv-Dev] (PR#37596) 64bit & lua & -Werror

2007-09-03 Thread Marko Lindqvist

http://bugs.freeciv.org/Ticket/Display.html?id=37596 >

On 03/09/07, Egor Vyscrebentsov wrote:
>
> > [cazfi74 - Mon Mar 05 19:49:42 2007]:
> >
> >  --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
>
> If this have any sense - see attached patch. Works for me.

 Fixes problems here too. It has some theoretical problems, but less
so than old code.


 - ML



___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] (PR#37596) 64bit & lua & -Werror

2007-09-03 Thread Egor Vyscrebentsov

http://bugs.freeciv.org/Ticket/Display.html?id=37596 >

> [cazfi74 - Mon Mar 05 19:49:42 2007]:
> 
>  --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

If this have any sense - see attached patch. Works for me.

PS. This is also a test of how RT works now through web interface.

PPS. We have several tickets with same error.

-- 
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
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


Re: [Freeciv-Dev] (PR#37596) 64bit & lua & -Werror

2007-03-05 Thread Marko Lindqvist

http://bugs.freeciv.org/Ticket/Display.html?id=37596 >

On 3/5/07, Marko Lindqvist <[EMAIL PROTECTED]> 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.


 - ML



___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] (PR#37596) 64bit & lua & -Werror

2007-03-05 Thread Marko Lindqvist

http://bugs.freeciv.org/Ticket/Display.html?id=37596 >

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


 - ML



___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev