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

Remove use of the deprecated register keyword.

Fixes a build error on C++17 compilers.
This commit is contained in:
Sadie Powell
2020-10-02 15:27:47 +01:00
parent da08dd6d0e
commit 4ba871c631
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ int ci::ci_char_traits::compare(const char *str1, const char *str2, size_t n)
{
for (unsigned i = 0; i < n; ++i)
{
register unsigned char c1 = case_map_upper[static_cast<unsigned char>(*str1)],
unsigned char c1 = case_map_upper[static_cast<unsigned char>(*str1)],
c2 = case_map_upper[static_cast<unsigned char>(*str2)];
if (c1 > c2)