diff options
author | Christopher Faylor <me@cgf.cx> | 2002-11-27 18:10:16 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-11-27 18:10:16 +0000 |
commit | 46a402e03ebd63ab6acce0775ab3158ee5d4f687 (patch) | |
tree | deb654cd79e819f4af5183d5e8a84a4ffcdb4cf3 /newlib/libc/string/memset.c | |
parent | cdaf88961da2a03545e9fed3be9db02d84d994c9 (diff) | |
download | cygnal-46a402e03ebd63ab6acce0775ab3158ee5d4f687.tar.gz cygnal-46a402e03ebd63ab6acce0775ab3158ee5d4f687.tar.bz2 cygnal-46a402e03ebd63ab6acce0775ab3158ee5d4f687.zip |
* libc/string/memset.c (memset): Fix comment.
Diffstat (limited to 'newlib/libc/string/memset.c')
-rw-r--r-- | newlib/libc/string/memset.c | 6 |
1 files changed, 2 insertions, 4 deletions
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 |