Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2001:
[Freeciv-Dev] Re: Population counter overflow (PR#954)
Home

[Freeciv-Dev] Re: Population counter overflow (PR#954)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: rf13@xxxxxxxxxxxxxxxxxxxxxx
Cc: s.yeates@xxxxxxxxxxxxxxxx, freeciv-dev@xxxxxxxxxxx, bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Population counter overflow (PR#954)
From: Mike Kaufman <mkaufman@xxxxxxxxxxxxxx>
Date: Tue, 11 Sep 2001 08:34:47 -0500

On Tue, Sep 11, 2001 at 03:19:42PM +0200, Raimar Falke wrote:
> On Mon, Sep 10, 2001 at 01:48:17PM -0700, s.yeates@xxxxxxxxxxxxxxxx wrote:
> > Full_Name: stuart yeates
> > Version: 1.11.4
> > Distribution: Built from source
> > Client: Gtk+
> > OS: Linux
> > Submission from: (NULL) (130.217.76.32)
> > 
> > 
> > The population counter overflows for very large populations
> 
> If I assume that sizeof(int)==4 on your system you need a population
> over 2,000,000,000 to wrap the counter around. A city of size 30 has
> 4650,000 citizen. You would need about 430 cities for this. Do you
> really has such a huge empire?
> 
If you use the editor to create interesting scenarios (i.e. with very
large cities ~size 31-631) then population goes up really fast.

-mike

PS: at least I think that 631 was the size that it took for one city to
overload the population.

>       Raimar
> 
> -- 
>  email: rf13@xxxxxxxxxxxxxxxxx
>  "On the eigth day, God started debugging"


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