From b8f15d5a716bab515cd74c32bdc3221f56a465ae Mon Sep 17 00:00:00 2001 From: Laurent Gomila Date: Wed, 2 Oct 2013 22:40:24 +0200 Subject: [PATCH] Fixed minor compiler warnings in sf::Text --- src/SFML/Graphics/Text.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/SFML/Graphics/Text.cpp b/src/SFML/Graphics/Text.cpp index cee1cfd1..e2e77a9e 100644 --- a/src/SFML/Graphics/Text.cpp +++ b/src/SFML/Graphics/Text.cpp @@ -251,7 +251,10 @@ void Text::updateGeometry() float y = static_cast(m_characterSize); // Create one quad for each character - float minX = m_characterSize, minY = m_characterSize, maxX = 0, maxY = 0; + float minX = static_cast(m_characterSize); + float minY = static_cast(m_characterSize); + float maxX = 0.f; + float maxY = 0.f; Uint32 prevChar = 0; for (std::size_t i = 0; i < m_string.getSize(); ++i) {