From e93bafcb11bf97934840d67c9bca3930473458f6 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 17 May 2018 07:21:50 +0200 Subject: memcmp: compare unsigned chars MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/string/mem/memcmp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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++; -- cgit v1.2.3-70-g09d2