diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2011-07-17 13:59:13 +0400 |
---|---|---|
committer | Cyrill Gorcunov <gorcunov@gmail.com> | 2011-07-17 13:59:13 +0400 |
commit | 0aa9bdf7b2fa49ed2ea06e8aebd10886c92cc139 (patch) | |
tree | 2fc3b29217b08617f21bc5c88ca2f7888a10a9da | |
parent | f4941892b3e6657cdffdd7bbd13392c3dbb0612e (diff) | |
download | nasm-0aa9bdf7b2fa49ed2ea06e8aebd10886c92cc139.tar.gz nasm-0aa9bdf7b2fa49ed2ea06e8aebd10886c92cc139.tar.bz2 nasm-0aa9bdf7b2fa49ed2ea06e8aebd10886c92cc139.zip |
Fix saa_writeaddr for big-endian case
saa_writeaddr on big-endian archs didn't write converted
argument, fix it.
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
-rw-r--r-- | saa.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -342,6 +342,7 @@ void saa_write64(struct SAA *s, uint64_t v) b[5] = v >> 40; b[6] = v >> 48; b[7] = v >> 56; + saa_wbytes(s, b, 8); } @@ -358,7 +359,7 @@ void saa_writeaddr(struct SAA *s, uint64_t v, size_t len) b[6] = v >> 48; b[7] = v >> 56; - saa_wbytes(s, &v, len); + saa_wbytes(s, b, len); } #endif /* WORDS_LITTLEENDIAN */ |