W3C home > Mailing lists > Public > www-amaya-dev@w3.org > January 2008

Bad typecast when using --with-debug

From: Urs Holzer <urs@andonyar.com>
Date: Thu, 24 Jan 2008 10:57:55 +0100
To: www-amaya-dev@w3.org
Message-Id: <200801241057.55960.urs@andonyar.com>

Hello

There is a problem with a typecast when compiling on a 64bit 
architecture (Linux). However, this problem turns up only when the 
debugging options are on (i.e. when configure is called 
with --with-debug which causes AMAYA_DEBUG to be on).

Here the error messages:

../../amaya/MENUconf.c: In function ‘void TemplatesCallbackDialog(int, 
int, char*)’:
../../amaya/MENUconf.c:2581: error: cast from ‘char*’ to ‘int’ loses 
precision
../../amaya/MENUconf.c: In function ‘void PasswordsCallbackDialog(int, 
int, char*)’:
../../amaya/MENUconf.c:2670: error: cast from ‘char*’ to ‘int’ loses 
precision

I used revision 1.271 of the file MENUconf.c (the newest one at time of 
writing this).
Received on Thursday, 24 January 2008 09:58:18 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:49:02 GMT