summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2011-07-17 13:59:13 +0400
committerCyrill Gorcunov <gorcunov@gmail.com>2011-07-17 13:59:13 +0400
commit0aa9bdf7b2fa49ed2ea06e8aebd10886c92cc139 (patch)
tree2fc3b29217b08617f21bc5c88ca2f7888a10a9da
parentf4941892b3e6657cdffdd7bbd13392c3dbb0612e (diff)
downloadnasm-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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/saa.c b/saa.c
index 157aba3..6719584 100644
--- a/saa.c
+++ b/saa.c
@@ -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 */