Complete.Org: Mailing Lists: Archives: freeciv-dev: July 1999:
Re: [Freeciv-Dev] Server hangs on an Alpha

Re: [Freeciv-Dev] Server hangs on an Alpha

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: matthew@xxxxxxxxxxxxxx
Cc: freeciv-dev@xxxxxxxxxxx, brunel@xxxxxxxxxxxxxxxxxxxx
Subject: Re: [Freeciv-Dev] Server hangs on an Alpha
From: David Pfitzner <dwp@xxxxxxxxxxxxxx>
Date: Fri, 30 Jul 1999 11:13:15 +1000 (EST)

Matthew OConnor wrote:

> There seems to be a lot of long ints used.  Sometimes I wonder why.
> I don't know the source well enough to know if it is required in some
> locations.  But there is a comment at line 1121 of mapgen.c that says
> this:
>   static long int tilefactor, balance, lastplaced;/* int may be only 2 byte ! 
> */
> So that makes me wonder.  Are longs just used b/c you want FreeCiv to
> run on machines that have 2 byte ints?

Freeciv requires 32 bit (4 byte) ints in lots of places, so that
comment makes no sense to me.  And on most systems which freeciv 
works on, the expression (sizeof(int) == sizeof(long int)) is true, 
so the use of long ints seems quite unnecessary.

-- David

[Prev in Thread] Current Thread [Next in Thread]