mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
Fixed type conversion warnings
This commit is contained in:
parent
091fbd9d42
commit
48c7db52c3
@ -48,7 +48,7 @@ void ConvexShape::SetPointCount(unsigned int count)
|
||||
////////////////////////////////////////////////////////////
|
||||
unsigned int ConvexShape::GetPointCount() const
|
||||
{
|
||||
return myPoints.size();
|
||||
return static_cast<unsigned int>(myPoints.size());
|
||||
}
|
||||
|
||||
|
||||
|
@ -50,7 +50,7 @@ myPrimitiveType(type)
|
||||
////////////////////////////////////////////////////////////
|
||||
unsigned int VertexArray::GetVertexCount() const
|
||||
{
|
||||
return myVertices.size();
|
||||
return static_cast<unsigned int>(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<unsigned int>(myVertices.size()), myPrimitiveType, states);
|
||||
}
|
||||
|
||||
} // namespace sf
|
||||
|
Loading…
Reference in New Issue
Block a user