This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [gfortran] PATCH -- random.c: fix infinite loop and make sequences consistent


On Sun, Jun 13, 2004 at 08:14:38PM +0200, Tobias Schl?ter wrote:
> Tobias Schl?ter wrote:
> >Steven G. Kargl wrote:
> >
> >>2004-06-13  Steven G. Kargl  <kargls@comcast.net>
> >>     * random.c (random_r4): Burn a random number
> >>       (random_r8): fix infinite loop.
> >>
> >
> >I committed this under the obviously correct rule. 
> 
> Actually, I take the word 'obviously' back. Shouldn't the check compare 
> to 1.0 given that our random numbers are meant to be in the interval [0,1(?
> 

Whoops. I sent the wrong patch.  Yes, it should be (x==1.0).

-- 
Steve


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]