From 48c7db52c3e3d9067ba37d9804c18c8d2ab599de Mon Sep 17 00:00:00 2001 From: Laurent Gomila Date: Thu, 16 Feb 2012 23:09:55 +0100 Subject: [PATCH] Fixed type conversion warnings --- src/SFML/Graphics/ConvexShape.cpp | 2 +- src/SFML/Graphics/VertexArray.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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