summaryrefslogtreecommitdiffstats
path: root/newlib/libc/string/memccpy.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/string/memccpy.c')
-rw-r--r--newlib/libc/string/memccpy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/string/memccpy.c b/newlib/libc/string/memccpy.c
index dded85781..332ed4660 100644
--- a/newlib/libc/string/memccpy.c
+++ b/newlib/libc/string/memccpy.c
@@ -98,7 +98,7 @@ _DEFUN (memccpy, (dst0, src0, endchar, len0),
then punt into the byte copy loop. This should be rare. */
if (!TOO_SMALL(len0) && !UNALIGNED (src, dst))
{
- int i;
+ unsigned int i;
unsigned long mask = 0;
aligned_dst = (long*)dst;