From 869087d53dc9e30d80ae7d265ca95a95f7190d1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Mon, 22 May 2017 13:54:20 +0300 Subject: [PATCH] Use cpu_to_le64 instead of htole64 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes compilation on macOS, Windows, and quite likely a number of other platforms. Signed-off-by: Martin Storsjö Signed-off-by: H. Peter Anvin --- asm/assemble.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asm/assemble.c b/asm/assemble.c index 4f9cead2..6fd80274 100644 --- a/asm/assemble.c +++ b/asm/assemble.c @@ -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 */