Avoid integer overflow in gmx_wham by using gmx_int64_t.
commit25caae8d70adfa82beeb5ec1401f931ae1c5ec6d
authorBéla Voß <bvoss@gwdg.de>
Thu, 27 Aug 2015 11:34:16 +0000 (27 13:34 +0200)
committerDavid van der Spoel <spoel@xray.bmc.uu.se>
Wed, 2 Sep 2015 08:22:09 +0000 (2 10:22 +0200)
tree5f74ca188b5ff6d469cb38f9131a59deafab7139
parente7dc5714e7d0f791ac2b82f40347dd25bbbb87a7
Avoid integer overflow in gmx_wham by using gmx_int64_t.

somce gmx_wham internally uses femtoseconds, a cast to int can lead to
overflows in microsecond timescale simulations.

Change-Id: Ib7589c3c1ce47b29b3ada458b85bf577b41996d1
src/gromacs/gmxana/gmx_wham.cpp