diff --git a/output/outmac64.c b/output/outmac64.c index 1d30e648..461fa326 100644 --- a/output/outmac64.c +++ b/output/outmac64.c @@ -588,7 +588,7 @@ static void macho_output(int32_t secto, const void *data, case OUT_REL4ADR: p = mydata; - WRITELONG(p, *(int64_t *)data + 4 - size); + WRITEDLONG(p, *(int64_t *)data + 4 - size); if (section == secto) nasm_error(ERR_PANIC, "intra-section OUT_REL4ADR");