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
/
swap
/
swapcoords.cpp
diff --git
a/src/gromacs/swap/swapcoords.cpp
b/src/gromacs/swap/swapcoords.cpp
index bb1d94174948ba3fe76854fa2f4acbb1fbe6bd8f..5f436e41d3180c77da527de296aa794344931e6f 100644
(file)
--- a/
src/gromacs/swap/swapcoords.cpp
+++ b/
src/gromacs/swap/swapcoords.cpp
@@
-419,7
+419,7
@@
static gmx_bool compartment_contains_atom(
x += l;
}
- *distance_from_b =
(real)fabs(x - bulkOffset*0.5*width
);
+ *distance_from_b =
static_cast<real>(fabs(x - bulkOffset*0.5*width)
);
/* Return TRUE if we now are in area "????" */
return (x >= w1) && (x < w2);