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

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

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Cc: brunel@xxxxxxxxxxxxxxxxxxxx
Subject: Re: [Freeciv-Dev] Server hangs on an Alpha
From: Matthew OConnor <matthew@xxxxxxxxxxxxxx>
Date: Wed, 28 Jul 1999 18:51:20 -0500

Nicolas Brunel [brunel@xxxxxxxxxxxxxxxxxxxx] said:

> First problem, totalmass is a static long int used in a function
> which awaits an int. Second problem, as in my_rand(int size) size
> can be negative which leads to strange behaviour.  

I changed the myrand(int size) to myrand(RANDOM_TYPE size) and
recompiled.  The problem was still present.  I then changed the
RANDOM_TYPE typedef from "unsigned int" to "unsigned long int" and the
now the server doesn't hang anymore.  I haven't had a chance to make
sure it is "working" correctly, but it no longer hangs.

(BTW both of my changes together should have counteracted the two
 problems you noted above).






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