mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-21 03:14:19 +08:00
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>
This commit is contained in:
parent
f4941892b3
commit
0aa9bdf7b2
3
saa.c
3
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 */
|
||||
|
Loading…
Reference in New Issue
Block a user