We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7de58a0 commit 6eec740Copy full SHA for 6eec740
1 file changed
source/source_cell/read_pp_complete.cpp
@@ -140,7 +140,7 @@ void Pseudopot_upf::complete_default_atom(Atom_pseudo& pp)
140
if (br)
141
{
142
// force msh to be odd for simpson integration
143
- pp.msh = 2 * (int)((pp.msh + 1) / 2) - 1; // 5
+ pp.msh = 2 * static_cast<int>((pp.msh + 1) / 2) - 1; // Use static_cast instead of C-style cast for type safety
144
}
145
else
146
@@ -161,4 +161,4 @@ void Pseudopot_upf::complete_default_vl(Atom_pseudo& pp)
161
162
163
return;
164
-}
+}
0 commit comments