[Ecls-list] Re: Still seeing (random <larger integer>) ==> 0
Juan Jose Garcia Ripoll
lisp at arrakis.es
Fri Mar 11 06:15:15 UTC 2005
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.
Juanjo
More information about the ecl-devel
mailing list