1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 17:05:26 +02:00

due to update of IAddress

This commit is contained in:
David Inglis 2004-09-23 15:28:44 +00:00
parent 61499b865d
commit 1d222d0636

View file

@ -335,7 +335,7 @@ public class MemoryPresentation
if (address.compareTo( firstRow.getAddress()) >=0 && address.compareTo( lastRow.getAddress()) <=0)
{
BigInteger asciiOffset = address.distance( firstRow.getAddress());
BigInteger asciiOffset = firstRow.getAddress().distanceTo(address);
int asciiRowlength = getMemoryBlock().getWordSize() * getMemoryBlock().getNumberOfColumns();
int numberOfRows = asciiOffset.intValue() / asciiRowlength;
int offsetInRow = asciiOffset.intValue() % asciiRowlength;