2
0
mirror of https://github.com/boostorg/random.git synced 2026-01-26 06:42:28 +00:00
Files
random/include
Romain Geissler 2823a3ab67 Fix -Wtautological-overlap-compare clang warning in linear_congruential.hpp
Clang 10 shows this warning/error (with -Werror):

/remote/intdeliv/components/osp/Boost/19-0-0-18/include/boost/random/linear_congruential.hpp:140:20: error: overlapping comparisons always evaluate to false [-Werror,-Wtautological-overlap-compare]
        if(_x <= 0 && _x != 0) {
           ~~~~~~~~^~~~~~~~~~
/remote/intdeliv/components/osp/Boost/19-0-0-18/include/boost/random/linear_congruential.hpp:393:11: note: in instantiation of member function 'boost::random::linear_congruential_engine<unsigned long, 25214903917, 11, 281474976710656>::seed' requested here
    { lcf.seed(cnv(x0)); }
2020-11-25 11:05:10 -07:00
..