mirror of git://gcc.gnu.org/git/gcc.git
libstdc++: Fix -Wreorder warning in std::philox_engine
libstdc++-v3/ChangeLog: * include/bits/random.h (philox_engine(result_type)): Reorder ctor-initializer-list to match declaration order.
This commit is contained in:
parent
3f2a291ef3
commit
9af9532118
|
@ -1778,7 +1778,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
|
|||
|
||||
explicit
|
||||
philox_engine(result_type __value)
|
||||
: _M_x{}, _M_y{}, _M_k{}, _M_i(__n - 1)
|
||||
: _M_x{}, _M_k{}, _M_y{}, _M_i(__n - 1)
|
||||
{ _M_k[0] = __value & max(); }
|
||||
|
||||
/** @brief seed sequence constructor for %philox_engine
|
||||
|
|
Loading…
Reference in New Issue