diff --git a/Cantera/src/SpeciesThermoFactory.cpp b/Cantera/src/SpeciesThermoFactory.cpp index 30243ef4b..0caa2458c 100755 --- a/Cantera/src/SpeciesThermoFactory.cpp +++ b/Cantera/src/SpeciesThermoFactory.cpp @@ -40,7 +40,7 @@ namespace Cantera { const XML_Node& sparray = *node; vector sp; sparray.getChildren("species",sp); - int ns = sp.size(); + int ns = static_cast(sp.size()); for (int n = 0; n < ns; n++) { XML_Node* spNode = sp[n]; if (spNode->hasChild("thermo")) { @@ -74,7 +74,7 @@ namespace Cantera { SpeciesThermo* SpeciesThermoFactory:: newSpeciesThermo(vector nodes) { - int n = nodes.size(); + int n = static_cast(nodes.size()); int inasa = 0, ishomate = 0, isimple = 0; for (int j = 0; j < n; j++) { getSpeciesThermoTypes(nodes[j], inasa, ishomate, isimple); @@ -86,7 +86,7 @@ namespace Cantera { SpeciesThermo* SpeciesThermoFactory:: newSpeciesThermoOpt(vector nodes) { - int n = nodes.size(); + int n = static_cast(nodes.size()); int inasa = 0, ishomate = 0, isimple = 0; for (int j = 0; j < n; j++) { try { @@ -314,7 +314,7 @@ namespace Cantera { } const XML_Node& thermo = s.child("thermo"); const vector& tp = thermo.children(); - int nc = tp.size(); + int nc = static_cast(tp.size()); if (nc == 1) { const XML_Node* f = tp[0]; if (f->name() == "Shomate") {