From f92bf30f15b8f4d287abe3ba9e600cb832fa4e7e Mon Sep 17 00:00:00 2001 From: rburchell Date: Sun, 15 Feb 2009 15:21:06 +0000 Subject: [PATCH] Fix compile error. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2060 5417fbe8-f217-4b02-8779-1006273d7864 --- include/services.h | 2 +- src/wildcard.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/services.h b/include/services.h index 55b9a2a4a..552688411 100644 --- a/include/services.h +++ b/include/services.h @@ -1372,7 +1372,7 @@ class Anope * @param str The string to check against the pattern (e.g. foobar) * @param case_sensitive Whether or not the match is case sensitive, default false. */ - CoreExport static bool Anope::Match(const std::string &str, const std::string &mask, bool case_sensitive = false); + CoreExport static bool Match(const std::string &str, const std::string &mask, bool case_sensitive = false); }; /*************************************************************************/ diff --git a/src/wildcard.cpp b/src/wildcard.cpp index f2e9d5e9f..65916d038 100644 --- a/src/wildcard.cpp +++ b/src/wildcard.cpp @@ -75,7 +75,7 @@ static bool match_internal(const unsigned char *str, const unsigned char *mask, return !*wild; } -CoreExport bool Anope::Match(const std::string &str, const std::string &mask, bool case_sensitive = false) +CoreExport bool Anope::Match(const std::string &str, const std::string &mask, bool case_sensitive) { - return match_internal(str.c_str(), mask.c_str(), case_sensitive); + return match_internal((const unsigned char *)str.c_str(), (const unsigned char *)mask.c_str(), case_sensitive); }