From 14c89c0f50dd04c1187819abcc24490fa975574e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 9 Apr 2011 20:00:06 +0300 Subject: Small fix to code style and compilation warning. --- src/utils/stringutils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/utils') diff --git a/src/utils/stringutils.cpp b/src/utils/stringutils.cpp index a7e1b6c7d..8ae155bf7 100644 --- a/src/utils/stringutils.cpp +++ b/src/utils/stringutils.cpp @@ -448,7 +448,7 @@ std::string getLang() std::string lang(lng); int dot = lang.find("."); - if (dot == std::string::npos && dot > 0) + if (dot == (signed)std::string::npos) return lang; return lang.substr(0, dot); -- cgit v1.2.3-70-g09d2