From 46a402e03ebd63ab6acce0775ab3158ee5d4f687 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Wed, 27 Nov 2002 18:10:16 +0000 Subject: [PATCH] * libc/string/memset.c (memset): Fix comment. --- newlib/ChangeLog | 4 ++++ newlib/libc/string/memset.c | 6 ++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index c0f55f3b4..c4468d8c3 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,7 @@ +2002-11-27 Christopher Faylor + + * libc/string/memset.c (memset): Fix comment. + 2002-11-26 Christopher Faylor * libc/string/memset.c (memset): Move initialization of 'd' earlier in diff --git a/newlib/libc/string/memset.c b/newlib/libc/string/memset.c index 6f98cac62..ac3590ea4 100644 --- a/newlib/libc/string/memset.c +++ b/newlib/libc/string/memset.c @@ -59,14 +59,12 @@ _DEFUN (memset, (m, c, n), int i; unsigned long buffer; unsigned long *aligned_addr; - unsigned int d = c & 0xff; + unsigned int d = c & 0xff; /* To avoid sign extension, copy C to an + unsigned variable. */ if (!TOO_SMALL (n) && !UNALIGNED (m)) { /* If we get this far, we know that n is large and m is word-aligned. */ - - /* To avoid sign extention, copy C to an unsigned variable. */ - aligned_addr = (unsigned long*)m; /* Store D into each char sized location in BUFFER so that