This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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: [PATCH] PR libstdc++/80506 fix constant used in condition


Hi,

On 24/04/2017 15:43, Jonathan Wakely wrote:
We use the wrong constant for the Marsaglia Tsang algorithm.

    PR libstdc++/80506
    * include/bits/random.tcc (gamma_distribution::operator()): Fix magic
    number used in loop condition.

Tested powerpc64le-linux, committed to trunk.

Thanks Jon for handling this. It would still be very nice to have a testcase...

Cheers,
Paolo.


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