summaryrefslogtreecommitdiff
path: root/src/hashcomp.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2020-10-02 15:27:47 +0100
committerSadie Powell <sadie@witchery.services>2020-10-02 16:53:13 +0100
commit4ba871c631d5362cba1bf90c3fecc03d0f0bc484 (patch)
tree4bc44adc16e5a6bf4bc68fe195ec15d6bd2c2b7e /src/hashcomp.cpp
parentda08dd6d0e8d7c895eee42768a8cb9d80830de25 (diff)
Remove use of the deprecated register keyword.
Fixes a build error on C++17 compilers.
Diffstat (limited to 'src/hashcomp.cpp')
-rw-r--r--src/hashcomp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hashcomp.cpp b/src/hashcomp.cpp
index d88a23142..7eac1205a 100644
--- a/src/hashcomp.cpp
+++ b/src/hashcomp.cpp
@@ -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)