Merge pull request #2053 from hzeller/feature-20250519-fix-hex2int

Fix logic error in hex2int.
This commit is contained in:
Matthias Köfferlein 2025-05-19 23:52:46 +02:00 committed by GitHub
commit 61a51e8722
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ static char hex2int (char c)
return c - '0';
} else if (c >= 'A' && c <= 'F') {
return (c - 'A') + 10;
} else if (c >= 'a' || c <= 'f') {
} else if (c >= 'a' && c <= 'f') {
return (c - 'a') + 10;
} else {
return 0;