diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-04-09 20:00:06 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-04-09 20:00:06 +0300 |
commit | 14c89c0f50dd04c1187819abcc24490fa975574e (patch) | |
tree | cddff3ba490b5115c5c71d90a1898bb97f9ee06b /src/utils | |
parent | 7e3bd20e9675202e30fac741f3d3acb4f19b109d (diff) | |
download | manaplus-14c89c0f50dd04c1187819abcc24490fa975574e.tar.gz manaplus-14c89c0f50dd04c1187819abcc24490fa975574e.tar.bz2 manaplus-14c89c0f50dd04c1187819abcc24490fa975574e.tar.xz manaplus-14c89c0f50dd04c1187819abcc24490fa975574e.zip |
Small fix to code style and compilation warning.
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/stringutils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |