diff --git a/src/numerics/NonlinearSolver.cpp b/src/numerics/NonlinearSolver.cpp index a20dced0c..a5f350f84 100644 --- a/src/numerics/NonlinearSolver.cpp +++ b/src/numerics/NonlinearSolver.cpp @@ -1248,7 +1248,7 @@ namespace Cantera { * Add junk to the Hessian diagonal * -> Note, testing indicates that this will get too big for ill-conditioned systems. */ - hcol = sqrt(neq_) * 1.0E-7 * hnorm; + hcol = sqrt(static_cast(neq_)) * 1.0E-7 * hnorm; #ifdef DEBUG_HKM_NOT if (hcol > 1.0) { hcol = 1.0E1;