[Ecls-list] Re: Still seeing (random <larger integer>) ==> 0

Paul F. Dietz dietz at dls.net
Fri Mar 11 07:28:51 UTC 2005


Juan Jose Garcia Ripoll wrote:
> Paul F. Dietz wrote:
> 
>> I have managed to make the problem go away, by specifying the
>> C compiler to be gcc 2.96.  The previous version was gcc 3.2.2
>> (the default in Redhat 9).  I suspect there's either a compiler
>> bug or some problem in the RANDOM code that the newer, perhaps
>> more C-stanard-assuming compiler is tripping up on. 
> 
> 
> I had a look at the code (num_rand.c) and it looks really harmless to 
> me: integers converted to floats, and then some operations on them. 
> Maybe the order of the type conversions is changed in some way by GCC.

I'm going to assume it's a gcc bug.  I've put upgrading my gcc stack
(and my entire Linux distro) on my TODO list.

	Paul





More information about the ecl-devel mailing list