aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/string/mem/memcmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/string/mem/memcmp.c b/src/string/mem/memcmp.c
index 71a3cd1..3f32762 100644
--- a/src/string/mem/memcmp.c
+++ b/src/string/mem/memcmp.c
@@ -32,8 +32,8 @@
*/
int memcmp(const void* a, const void* b, size_t size)
{
- const signed char* s1 = a;
- const signed char* s2 = b;
+ const unsigned char* s1 = a;
+ const unsigned char* s2 = b;
while (size--)
if (*s1 == *s2)
s1++, s2++;