From 73c7fc6bade134db5084bfbcfdf2f76da983bed7 Mon Sep 17 00:00:00 2001 From: Ian Bell Date: Fri, 17 Apr 2015 17:25:52 -0600 Subject: [PATCH] Switch MATLAB+OSX to libstdc++; see #596 --- src/Backends/REFPROP/REFPROPMixtureBackend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Backends/REFPROP/REFPROPMixtureBackend.cpp b/src/Backends/REFPROP/REFPROPMixtureBackend.cpp index ca5909b5..866c855c 100644 --- a/src/Backends/REFPROP/REFPROPMixtureBackend.cpp +++ b/src/Backends/REFPROP/REFPROPMixtureBackend.cpp @@ -744,7 +744,7 @@ void REFPROPMixtureBackend::calc_phase_envelope(const std::string &type) SPLNVALdll(&isp, &iderv, &c, &rhoymin, &ierr, herr, errormessagelength); iderv = -2; SPLNVALdll(&isp, &iderv, &c, &rhoymax, &ierr, herr, errormessagelength); - long nc = mole_fractions.size(); + long nc = static_cast(mole_fractions.size()); double ratio = pow(rhoymax/rhoymin,1/double(N)); for (double rho_molL = rhoymin; rho_molL < rhoymax; rho_molL *= ratio) {