summaryrefslogtreecommitdiff
path: root/include/hashcomp.h
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-09-22 11:28:44 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-09-22 11:28:44 +0000
commitd8e63234c47852f55811dacbbe9d4240e2d6e484 (patch)
tree381f74e88374163ecc3c9d891cf74e3099ec94fb /include/hashcomp.h
parentedef3ac92b3017f390b9b6dd9fa29319ed92538c (diff)
warning-free on windows
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10592 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/hashcomp.h')
-rw-r--r--include/hashcomp.h4
1 files changed, 2 insertions, 2 deletions
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