From be064fc94d080626bf00b5a07de0f9f2c4762538 Mon Sep 17 00:00:00 2001 From: David Odin Date: Wed, 19 Apr 2017 18:10:34 +0200 Subject: [PATCH] shut up a warning at -Wextra level by using the right type for an index variable (size_t instead of i) --- lib/string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/string.c b/lib/string.c index ee69e32..8d4623b 100644 --- a/lib/string.c +++ b/lib/string.c @@ -59,7 +59,7 @@ void* memset(void* s, int c, size_t count) unsigned long* sl = (unsigned long*) s; unsigned long cl = 0; char* s8; - int i; + size_t i; /* do it one word at a time (32 bits or 64 bits) while possible */ if ( ((uint32_t)s & (sizeof(*sl) - 1)) == 0) { -- 2.43.0