From ece5156668c63ff1cbc3e9a1424d0f0bada186ff Mon Sep 17 00:00:00 2001 From: Greg Miller <9447643+devjgm@users.noreply.github.com> Date: Wed, 9 Jun 2021 09:57:01 -0400 Subject: [PATCH] fix: handle data_member_location == 2^64-1 Fixes: https://github.com/lvc/abi-dumper/issues/28 See that issue for the details. --- abi-dumper.pl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/abi-dumper.pl b/abi-dumper.pl index 9c07b70..c69ff13 100644 --- a/abi-dumper.pl +++ b/abi-dumper.pl @@ -1493,9 +1493,11 @@ ($$) if($Val=~/\A\(\w+\)\s*(-?)(\w+)\Z/) { # (data1) 1c - $Val = hex($2); - if($1) { - $Val = -$Val; + if ($2 != 0xFFFFFFFFFFFFFFFF) { + $Val = hex($2); + if($1) { + $Val = -$Val; + } } } else