summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2013-11-26 18:22:45 -0800
committerH. Peter Anvin <hpa@zytor.com>2013-11-26 18:22:45 -0800
commitd35f23011334d0693b48f16757e3971069ad7328 (patch)
treeec36b0bc00841a8a7928bb9e7a5645658f323c09
parentfd52c277dd6d768545cee39b154e706904581966 (diff)
downloadnasm-d35f23011334d0693b48f16757e3971069ad7328.tar.gz
listing: handle negative (signed) address size values
The listing module also needs to know about this new convention. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--listing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/listing.c b/listing.c
index 38d7908e..18e949b4 100644
--- a/listing.c
+++ b/listing.c
@@ -216,7 +216,7 @@ static void list_output(int32_t offset, const void *data,
break;
}
case OUT_ADDRESS:
- list_address(offset, "[]", *(int64_t *)data, size);
+ list_address(offset, "[]", *(int64_t *)data, abs(size));
break;
case OUT_REL1ADR:
list_address(offset, "()", *(int64_t *)data, 1);