diff --git a/avogadro/core/atomutilities.cpp b/avogadro/core/atomutilities.cpp index 1bf4e948dd..5d37940964 100644 --- a/avogadro/core/atomutilities.cpp +++ b/avogadro/core/atomutilities.cpp @@ -67,7 +67,7 @@ Vector3 AtomUtilities::generateNewBondVector( { Vector3 newPos; bool success = false; - int currentValence = allVectors.size(); + int currentValence = static_cast(allVectors.size()); // No bonded atoms, just pick a random vector if (currentValence == 0) {