diff options
author | jake <jake@FreeBSD.org> | 2002-05-13 22:48:01 +0000 |
---|---|---|
committer | jake <jake@FreeBSD.org> | 2002-05-13 22:48:01 +0000 |
commit | a10a1944b6e10a27f5891b9e0ea2e52e8b4c2e19 (patch) | |
tree | 1058e872b1c2a72173e3a58b3cc429b88b368027 /lib/libc/sparc64 | |
parent | 741f22f7bb1788ba4c25dc09ff2e26c6e9dbafa3 (diff) | |
download | FreeBSD-src-a10a1944b6e10a27f5891b9e0ea2e52e8b4c2e19.zip FreeBSD-src-a10a1944b6e10a27f5891b9e0ea2e52e8b4c2e19.tar.gz |
Use the right byte order for unaligned stores. <blush>.
Diffstat (limited to 'lib/libc/sparc64')
-rw-r--r-- | lib/libc/sparc64/sys/__sparc_utrap_align.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/sparc64/sys/__sparc_utrap_align.c b/lib/libc/sparc64/sys/__sparc_utrap_align.c index a66266e..9b59826 100644 --- a/lib/libc/sparc64/sys/__sparc_utrap_align.c +++ b/lib/libc/sparc64/sys/__sparc_utrap_align.c @@ -52,7 +52,7 @@ __unaligned_store(u_char *p, u_long val, int size) int i; for (i = 0; i < size; i++) - p[i] = val >> (i * 8); + p[i] = val >> ((size - i - 1) * 8); } int |