Squash warnings on gcc 9.4

This commit is contained in:
Sergey Lyubka committed 2024-05-16 11:13:21 +01:00
1 parent 68f7be7a1a
commit ac0e6f3377
3 files changed
+14 -14

No files matched your search

+1 -1
View File
@@ -14,7 +14,7 @@
static int mg_ncasecmp(const char *s1, const char *s2, size_t len) {
int diff = 0;
if (len > 0) do {
char c = *s1++, d = *s2++;
int c = *s1++, d = *s2++;
if (c >= 'A' && c <= 'Z') c += 'a' - 'A';
if (d >= 'A' && d <= 'Z') d += 'a' - 'A';
diff = c - d;