IMAP now compiles again with GCC 4.

This commit is contained in:
Axel Dörfler
2015-01-06 15:22:04 +01:00
parent 4d30240166
commit ae9d8c6add
2 changed files with 3 additions and 2 deletions
@@ -10,6 +10,7 @@
#include <sys/stat.h>
#include <Entry.h>
#include <Node.h>
#include <Handler.h>
#include <String.h>
@@ -1,5 +1,5 @@
/*
* Copyright 2011, Axel Dörfler, [email protected].
* Copyright 2011-2012, Axel Dörfler, [email protected].
* Distributed under the terms of the MIT License.
*/
@@ -39,7 +39,7 @@ RFC3501Encoding::RFC3501Encoding()
if (!kInverseBase64Initialized) {
// This is not thread safe, but it's not harmful
for (size_t i = 0; i < sizeof(kBase64Alphabet); i++)
kInverseBase64Alphabet[kBase64Alphabet[i]] = i + 1;
kInverseBase64Alphabet[(int)kBase64Alphabet[i]] = i + 1;
kInverseBase64Initialized = true;
}
}