GP-5865 Add reference dialog fix for address spaces that have a wordsize

greater than one byte
This commit is contained in:
emteere 2025-07-23 20:03:01 +00:00
parent d11c1c6c17
commit 0744141b15

View file

@ -148,7 +148,7 @@ public class AddressEvaluator extends ExpressionEvaluator {
long offset = longValue.getLongValue(); long offset = longValue.getLongValue();
AddressSpace space = getAddressSpace(); AddressSpace space = getAddressSpace();
try { try {
return space.getAddressInThisSpaceOnly(offset); return space.getAddressInThisSpaceOnly(offset*space.getAddressableUnitSize());
} }
catch (AddressOutOfBoundsException e) { catch (AddressOutOfBoundsException e) {
throw new ExpressionException(e.getMessage()); throw new ExpressionException(e.getMessage());