X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fhashcomp.h;h=03ade20d17ca9b41d48bb7fb80c178a33fba72b6;hb=f7a563946c0f0f555440c30f91608880c9ebce89;hp=7093fa986abc1ff64cbd54a3ad301bb5754015a9;hpb=703ca18c66d6e7b209b13f415dfc52624801c77a;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/hashcomp.h b/include/hashcomp.h index 7093fa986..03ade20d1 100644 --- a/include/hashcomp.h +++ b/include/hashcomp.h @@ -593,7 +593,7 @@ BEGIN_HASHMAP_NAMESPACE bool operator()(const irc::string & s1, const irc::string & s2) const { if(s1.length() != s2.length()) return true; - return (irc::irc_char_traits::compare(s1.c_str(), s2.c_str(), s1.length()) < 0); + return (irc::irc_char_traits::compare(s1.c_str(), s2.c_str(), (size_t)s1.length()) < 0); } /** Hash an irc::string value for hash_map @@ -611,7 +611,7 @@ BEGIN_HASHMAP_NAMESPACE bool operator()(const std::string & s1, const std::string & s2) const { if(s1.length() != s2.length()) return true; - return (irc::irc_char_traits::compare(s1.c_str(), s2.c_str(), s1.length()) < 0); + return (irc::irc_char_traits::compare(s1.c_str(), s2.c_str(), (size_t)s1.length()) < 0); } /** Hash a std::string using RFC1459 case sensitivity rules