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
/
correlationfunctions
/
autocorr.cpp
diff --git
a/src/gromacs/correlationfunctions/autocorr.cpp
b/src/gromacs/correlationfunctions/autocorr.cpp
index 61dc522a28222d2b64019cc21b65958219c0664c..63560a924ae639de95fb8659cada326f7c78f3df 100644
(file)
--- a/
src/gromacs/correlationfunctions/autocorr.cpp
+++ b/
src/gromacs/correlationfunctions/autocorr.cpp
@@
-525,7
+525,7
@@
static void do_four_core(unsigned long mode, int nframes,
sfree(cfour);
for (j = 0; (j < nframes); j++)
{
- c1[j] = csum[j]/
(real)
(nframes-j);
+ c1[j] = csum[j]/
static_cast<real>
(nframes-j);
}
}