diff --git a/src/SFML/Graphics/ConvexShape.cpp b/src/SFML/Graphics/ConvexShape.cpp index 786024a0..d3ef69b6 100644 --- a/src/SFML/Graphics/ConvexShape.cpp +++ b/src/SFML/Graphics/ConvexShape.cpp @@ -48,7 +48,7 @@ void ConvexShape::SetPointCount(unsigned int count) //////////////////////////////////////////////////////////// unsigned int ConvexShape::GetPointCount() const { - return myPoints.size(); + return static_cast(myPoints.size()); } diff --git a/src/SFML/Graphics/VertexArray.cpp b/src/SFML/Graphics/VertexArray.cpp index 7d93e4eb..60a3a88e 100644 --- a/src/SFML/Graphics/VertexArray.cpp +++ b/src/SFML/Graphics/VertexArray.cpp @@ -50,7 +50,7 @@ myPrimitiveType(type) //////////////////////////////////////////////////////////// unsigned int VertexArray::GetVertexCount() const { - return myVertices.size(); + return static_cast(myVertices.size()); } @@ -144,7 +144,7 @@ FloatRect VertexArray::GetBounds() const void VertexArray::Draw(RenderTarget& target, RenderStates states) const { if (!myVertices.empty()) - target.Draw(&myVertices[0], myVertices.size(), myPrimitiveType, states); + target.Draw(&myVertices[0], static_cast(myVertices.size()), myPrimitiveType, states); } } // namespace sf