diff options
author | Christopher Faylor <me@cgf.cx> | 2002-11-26 18:11:51 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-11-26 18:11:51 +0000 |
commit | b3cc01b02bd728a8b10e362b6f23566cbd451003 (patch) | |
tree | 9f52f1c920657f332607733b8aa72a8145ab50ef /newlib/libc/string/memset.c | |
parent | 5362be5926f9b07cb8c61fc10e0ed4485fc8bf86 (diff) | |
download | newlib-b3cc01b02bd728a8b10e362b6f23566cbd451003.zip newlib-b3cc01b02bd728a8b10e362b6f23566cbd451003.tar.gz newlib-b3cc01b02bd728a8b10e362b6f23566cbd451003.tar.bz2 |
* libc/string/memset.c (memset): Move initialization of 'd' earlier in
function.
Diffstat (limited to 'newlib/libc/string/memset.c')
-rw-r--r-- | newlib/libc/string/memset.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/string/memset.c b/newlib/libc/string/memset.c index 41b7d03..6f98cac 100644 --- a/newlib/libc/string/memset.c +++ b/newlib/libc/string/memset.c @@ -59,13 +59,13 @@ _DEFUN (memset, (m, c, n), int i; unsigned long buffer; unsigned long *aligned_addr; + unsigned int d = c & 0xff; 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. */ - unsigned int d = c & 0xff; aligned_addr = (unsigned long*)m; |