Skip to content

Commit fcff592

Browse files
ischoeglspeth
authored andcommitted
[Kinetics] Use C++ static_cast rather than C cast
1 parent 9652ccf commit fcff592

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/kinetics/ReactionFactory.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ bool isThreeBody(const Reaction& R)
253253
if (trunc(reac.second) != reac.second) {
254254
return false;
255255
}
256-
nreac += (size_t)reac.second;
256+
nreac += static_cast<size_t>(reac.second);
257257
}
258258

259259
// ensure that all products have integer stoichiometric coefficients
@@ -262,7 +262,7 @@ bool isThreeBody(const Reaction& R)
262262
if (trunc(prod.second) != prod.second) {
263263
return false;
264264
}
265-
nprod += (size_t)prod.second;
265+
nprod += static_cast<size_t>(prod.second);
266266
}
267267

268268
// either reactant or product side involves exactly three species

0 commit comments

Comments
 (0)