Corrected improper scalar reference markup for negative values

This commit is contained in:
ghidra1
2020-02-04 12:47:46 -05:00
parent 4973b0bd99
commit 30da09cce2
@@ -802,7 +802,7 @@ public class CodeUnitFormat {
long originalValue = (addr.isStackAddress() && long originalValue = (addr.isStackAddress() &&
originalScalar.bitLength() == addr.getAddressSpace().getSize()) originalScalar.bitLength() == addr.getAddressSpace().getSize())
? originalScalar.getSignedValue() ? originalScalar.getSignedValue()
: originalScalar.getValue(); : originalScalar.getUnsignedValue();
long addrOffset; long addrOffset;
if (addr instanceof SegmentedAddress) { if (addr instanceof SegmentedAddress) {
addrOffset = ((SegmentedAddress) addr).getSegmentOffset(); addrOffset = ((SegmentedAddress) addr).getSegmentOffset();