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:
parent
61499b865d
commit
1d222d0636
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue