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:
Martin Storsjö 2017-05-22 13:54:20 +03:00 committed by H. Peter Anvin
parent 95f5373ee9
commit 869087d53d

View File

@ -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 */