Introduce intermediate variable so that compiler will not complain
authorArtem Zhmurov <zhmurov@gmail.com>
Thu, 22 Oct 2020 13:39:03 +0000 (16:39 +0300)
committerMark Abraham <mark.j.abraham@gmail.com>
Thu, 22 Oct 2020 15:07:09 +0000 (15:07 +0000)
commitdd72ea4b9d4ec53e8cabea6c40542cd1d6fcd8c5
tree5e599f48a7f925a4f199b9a32279f8a96bf031ab
parentf7dfaeb7b1710a4e4fd3b003c04a44775d308e1b
Introduce intermediate variable so that compiler will not complain

Some compilers complain about the shift being larger than the shifted
variable, even though it is never executed in this case. This introduces
an intermediate shift variable that is explicitely set to zero in this case.

Issue #3752.
src/gromacs/random/seed.cpp