From 7e0a97d2521b9ce57003176e82a0b5564aa003c2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 17 Jul 2012 23:26:59 +0300 Subject: Fix more code style and additional warnings. --- src/utils/stringutils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/utils/stringutils.cpp') diff --git a/src/utils/stringutils.cpp b/src/utils/stringutils.cpp index 1808ea173..d55e4e650 100644 --- a/src/utils/stringutils.cpp +++ b/src/utils/stringutils.cpp @@ -267,7 +267,7 @@ std::string extractNameFromSprite(std::string str) pos2 = pos3; } if (pos2 == std::string::npos) - pos2 = -1; + pos2 = static_cast(-1); int size = static_cast(pos1) - static_cast(pos2) - 1; if (size > 0) @@ -290,7 +290,7 @@ std::string removeSpriteIndex(std::string str) pos2 = pos3; } if (pos2 == std::string::npos) - pos2 = -1; + pos2 = static_cast(-1); int size = static_cast(pos1) - static_cast(pos2) - 1; if (size > 0) -- cgit v1.2.3-60-g2f50