biod.pnpi.spb.ru
/
alexxy
/
gromacs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix part of old-style casting
[alexxy/gromacs.git]
/
src
/
gromacs
/
gmxpreprocess
/
x2top.cpp
diff --git
a/src/gromacs/gmxpreprocess/x2top.cpp
b/src/gromacs/gmxpreprocess/x2top.cpp
index a92f0a9546a252e80b54f305b77f99d26ffd9089..44d90618613e6d2250c21102a0e319b002c1c367 100644
(file)
--- a/
src/gromacs/gmxpreprocess/x2top.cpp
+++ b/
src/gromacs/gmxpreprocess/x2top.cpp
@@
-226,7
+226,7
@@
static void lo_set_force_const(t_params *plist, real c[], int nrfp, bool bRound,
if (bDih)
{
c[0] *= c[2];
- c[0] = (
(int)
(c[0] + 3600)) % 360;
+ c[0] = (
static_cast<int>
(c[0] + 3600)) % 360;
if (c[0] > 180)
{
c[0] -= 360;