1
0
mirror of https://github.com/anope/anope.git synced 2026-07-02 00:26:38 +02:00

Fix Windows

This commit is contained in:
Adam
2012-09-02 08:30:54 -04:00
parent e3d5140dcc
commit 1af64a9bbb
45 changed files with 152 additions and 115 deletions
+1 -1
View File
@@ -760,7 +760,7 @@ void Anope::Unhex(const Anope::string &src, Anope::string &dest)
Anope::string rv;
for (size_t i = 0; i + 1 < len; i += 2)
{
char h = std::tolower(src[i]), l = std::tolower(src[i + 1]);
char h = std::tolower(src[i], Anope::casemap), l = std::tolower(src[i + 1], Anope::casemap);
unsigned char byte = (h >= 'a' ? h - 'a' + 10 : h - '0') << 4;
byte += (l >= 'a' ? l - 'a' + 10 : l - '0');
rv += byte;