Complete.Org: Mailing Lists: Archives: freeciv-dev: April 1999:
[Freeciv-Dev] FreeCiv 1.8.0 64-bit cleanliness
Home

[Freeciv-Dev] FreeCiv 1.8.0 64-bit cleanliness

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] FreeCiv 1.8.0 64-bit cleanliness
From: John Goerzen <jgoerzen@xxxxxxxxxxxx>
Date: 30 Apr 1999 13:58:00 -0500

Hi,

While compiling FreeCiv 1.8.0, I get the following warnings.  If they
do not occur on your 32-bit development platforms, they are almost
always indicitive of 64-bit cleanliness issues.  With the growing
proliferation of 64-bit machines, it probably wouldn't hurt to address 
them.  Let me know if you require additional information tracking them 
down.

Things to keep in mind, on Alpha-Linux:

 sizeof(int) is 32 bits
 sizeof(int *) is 64 bits
 sizeof(long) is 64 bits

erwin ~/scratch/porting$ grep -i warn fc-warns
citydlg.c:1227: warning: cast to pointer from integer of different size
citydlg.c:1278: warning: cast to pointer from integer of different size
citydlg.c:1549: warning: cast to pointer from integer of different size
diplodlg.c:228: warning: cast to pointer from integer of different size
diplodlg.c:265: warning: cast to pointer from integer of different size
helpdlg.c:531: warning: cast to pointer from integer of different size
mapctrl.c:160: warning: cast to pointer from integer of different size
mapview.c:1493: warning: cast from pointer to integer of different size
ratesdlg.c:364: warning: cast from pointer to integer of different size
repodlgs.c:978: warning: cast to pointer from integer of different size


-- 
John Goerzen   Linux, Unix consulting & programming   jgoerzen@xxxxxxxxxxxx |
Developer, Debian GNU/Linux (Free powerful OS upgrade)       www.debian.org |
----------------------------------------------------------------------------+
The 143,960,571st prime number is 2,989,318,601.

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] FreeCiv 1.8.0 64-bit cleanliness, John Goerzen <=