From: nasm-bot f. H. P. A. <hp...@zy...> - 2013-11-27 21:48:18
|
Commit-ID: d35f23011334d0693b48f16757e3971069ad7328 Gitweb: http://repo.or.cz/w/nasm.git?a=commitdiff;h=d35f23011334d0693b48f16757e3971069ad7328 Author: H. Peter Anvin <hp...@zy...> AuthorDate: Tue, 26 Nov 2013 18:22:45 -0800 Committer: H. Peter Anvin <hp...@zy...> CommitDate: Tue, 26 Nov 2013 18:22:45 -0800 listing: handle negative (signed) address size values The listing module also needs to know about this new convention. Signed-off-by: H. Peter Anvin <hp...@zy...> --- listing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/listing.c b/listing.c index 38d7908..18e949b 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); |