Skip to content

Commit

Permalink
static_map.h: fix lowercase convert (#806)
Browse files Browse the repository at this point in the history
* More readability in convert lowercase

Co-authored-by: Sergey Shorokhov <wopox1337@ya.ru>
Co-authored-by: Artem Golubikhin
  • Loading branch information
Very Strange Karaulov and wopox1337 authored Jun 19, 2021
1 parent f23498b commit 527d081
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rehlds/public/rehlds/static_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,8 @@ class CICaseStringKeyStaticMap : public CStaticMap<const char*, T_VAL, ASSOC_2N,
if (cpuinfo.sse4_2) {
while (*pcc) {
char cc = *(pcc++);
if (cc >= 'A' || cc <= 'Z') {
cc |= 0x20;
if (cc >= 'A' && cc <= 'Z') {
cc = (cc - 'A') + 'a';
}
cksum = crc32c_t8_sse(cksum, cc);
}
Expand All @@ -240,8 +240,8 @@ class CICaseStringKeyStaticMap : public CStaticMap<const char*, T_VAL, ASSOC_2N,
{
while (*pcc) {
char cc = *(pcc++);
if (cc >= 'A' || cc <= 'Z') {
cc |= 0x20;
if (cc >= 'A' && cc <= 'Z') {
cc = (cc - 'A') + 'a';
}
cksum = crc32c_t8_nosse(cksum, cc);
}
Expand Down

0 comments on commit 527d081

Please sign in to comment.