summaryrefslogtreecommitdiffstats
path: root/newlib/libc/string/memchr.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/string/memchr.c')
-rw-r--r--newlib/libc/string/memchr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/string/memchr.c b/newlib/libc/string/memchr.c
index 13ed88186..db0af7cd7 100644
--- a/newlib/libc/string/memchr.c
+++ b/newlib/libc/string/memchr.c
@@ -80,7 +80,7 @@ _DEFUN (memchr, (src_void, c, length),
#if !defined(PREFER_SIZE_OVER_SPEED) && !defined(__OPTIMIZE_SIZE__)
unsigned long *asrc;
unsigned long mask;
- int i;
+ unsigned int i;
while (UNALIGNED (src))
{