2
0
mirror of https://github.com/rehlds/rehlds.git synced 2024-12-27 23:25:45 +03:00

static_map.h: fix lowercase convert (#806)

* More readability in convert lowercase

Co-authored-by: Sergey Shorokhov <wopox1337@ya.ru>
Co-authored-by: Artem Golubikhin
This commit is contained in:
Very Strange Karaulov 2021-06-19 22:30:12 +03:00 committed by GitHub
parent f23498bef7
commit 527d0819b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -229,8 +229,8 @@ protected:
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);
}
@ -240,8 +240,8 @@ protected:
{
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);
}