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
Replace rounding using int(x+0.5) with roundToInt
[alexxy/gromacs.git]
/
src
/
gromacs
/
statistics
/
statistics.cpp
diff --git
a/src/gromacs/statistics/statistics.cpp
b/src/gromacs/statistics/statistics.cpp
index 709759543018f649822bd369d4b696da29d0fbc1..ee4cecb124a2894a54f597dbf9eb981b4d9bf571 100644
(file)
--- a/
src/gromacs/statistics/statistics.cpp
+++ b/
src/gromacs/statistics/statistics.cpp
@@
-48,7
+48,7
@@
static int gmx_dnint(double x)
{
- return
static_cast<int>(x+0.5
);
+ return
gmx::roundToInt(x
);
}
typedef struct gmx_stats {