summaryrefslogtreecommitdiffstats
path: root/newlib/libc/string/memset.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/string/memset.c')
-rw-r--r--newlib/libc/string/memset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/string/memset.c b/newlib/libc/string/memset.c
index ee91b056e..b84e155f7 100644
--- a/newlib/libc/string/memset.c
+++ b/newlib/libc/string/memset.c
@@ -50,7 +50,7 @@ _DEFUN (memset, (m, c, n),
char *s = (char *) m;
#if !defined(PREFER_SIZE_OVER_SPEED) && !defined(__OPTIMIZE_SIZE__)
- int i;
+ unsigned int i;
unsigned long buffer;
unsigned long *aligned_addr;
unsigned int d = c & 0xff; /* To avoid sign extension, copy C to an