Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2001:
[Freeciv-Dev] Re: PATCH: mapgen warning removes
Home

[Freeciv-Dev] Re: PATCH: mapgen warning removes

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: PATCH: mapgen warning removes
From: Falk Hueffner <falk.hueffner@xxxxxxxxxxxxxxxxxxxxxxxx>
Date: 25 Jan 2001 01:47:42 +0100

Dirk Stoecker <stoecker@xxxxxxxxxxxxxx> writes:

> -static void makeisland(int islemass, int starters)
> +static void makeisland(long islemass, int starters)
>  {
>    static long int tilefactor, balance, lastplaced;/* int may be only 2 byte 
> ! */

I'm sure it is assumed at about a gazillion places that int is at
least 4 bytes. Please, let's rather document this and not uglify the
code with weird "longs" scattered about the place which make the code
behave bad on 64 bit architectures. (Yes, I have encountered *many*
such problems.)

        Falk




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