diff options
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); |