mirror of
https://github.com/void-linux/void-packages.git
synced 2025-10-09 03:55:20 +02:00
14 lines
355 B
Diff
14 lines
355 B
Diff
--- a/base/strings/char_traits.h
|
|
+++ b/base/strings/char_traits.h
|
|
@@ -67,9 +67,9 @@
|
|
return __builtin_memcmp(s1, s2, n);
|
|
#else
|
|
for (; n; --n, ++s1, ++s2) {
|
|
- if (*s1 < *s2)
|
|
+ if ((unsigned char)*s1 < (unsigned char)*s2)
|
|
return -1;
|
|
- if (*s1 > *s2)
|
|
+ if ((unsigned char)*s1 > (unsigned char)*s2)
|
|
return 1;
|
|
}
|
|
return 0;
|