biod.pnpi.spb.ru
/
alexxy
/
gromacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88cc2df
)
Mix minor clang-tidy warning in double
author
Paul Bauer
<paul.bauer.q@gmail.com>
Tue, 27 Oct 2020 14:18:37 +0000
(15:18 +0100)
committer
Paul Bauer
<paul.bauer.q@gmail.com>
Tue, 27 Oct 2020 15:48:49 +0000
(16:48 +0100)
One cast was using C-style, changed to C++ static_cast.
src/gromacs/nbnxm/pairlist.cpp
patch
|
blob
|
history
diff --git
a/src/gromacs/nbnxm/pairlist.cpp
b/src/gromacs/nbnxm/pairlist.cpp
index aa29c61cdee6f7057a5014fbdaf4139fc09ce19c..3f9a9f21c563926dfcfcd5df2ad18b0a43584da5 100644
(file)
--- a/
src/gromacs/nbnxm/pairlist.cpp
+++ b/
src/gromacs/nbnxm/pairlist.cpp
@@
-2873,7
+2873,7
@@
static float boundingbox_only_distance2(const Grid::Dimensions& iGridDims,
#if !GMX_DOUBLE
return rbb2;
#else
- return
(float)
((1 + GMX_FLOAT_EPS) * rbb2);
+ return
static_cast<float>
((1 + GMX_FLOAT_EPS) * rbb2);
#endif
}