[PATCH] PR libstdc++/83833 fix chi_squared_distribution::param(const param&)
Jonathan Wakely
jwakely@redhat.com
Mon Jan 29 14:11:00 GMT 2018
On 15/01/18 19:59 +0000, Jonathan Wakely wrote:
>The chi_squared_distribution::param(const param&) function should also
>update the parameters of the gamma_distribution member.
>
> PR libstdc++/83833
> * include/bits/random.h (chi_squared_distribution::param): Update
> gamma distribution parameter.
> * testsuite/26_numerics/random/chi_squared_distribution/83833.cc: New
> test.
>
>Tested powerpc64le-linux, committed to trunk.
>
>(I know this is not a regression, but it's a small fix, and I also
>plan to apply it on the branches).
This is needed to prevent the test failing on x86-32.
Committed to trunk and gcc-7-branch.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 948 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20180129/8ecfede7/attachment.bin>
More information about the Libstdc++
mailing list