From ee2697b4b8b15d211b14224efddc5a99031660ad Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Mon, 17 Dec 2012 23:59:40 +0000 Subject: [PATCH] Fixed a compiler error caused by ambiguous call to sqrt --- src/numerics/NonlinearSolver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;