mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-01-18 16:25:05 +08:00
Use cpu_to_le64 instead of htole64
This fixes compilation on macOS, Windows, and quite likely a number of other platforms. Signed-off-by: Martin Storsjö <martin@martin.st> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
parent
95f5373ee9
commit
869087d53d
@ -375,7 +375,7 @@ static void out(struct out_data *data)
|
||||
amax = ofmt->maxbits >> 3; /* Maximum address size in bytes */
|
||||
if (data->tsegment == fixseg && data->twrt == NO_SEG) {
|
||||
warn_overflow_out(addrval, asize, data->sign);
|
||||
xdata.q = htole64(addrval);
|
||||
xdata.q = cpu_to_le64(addrval);
|
||||
data->data = xdata.b;
|
||||
data->type = OUT_RAWDATA;
|
||||
asize = amax = 0; /* No longer an address */
|
||||
|
Loading…
Reference in New Issue
Block a user