mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-09-01 04:33:36 +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)
|
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 asciiRowlength = getMemoryBlock().getWordSize() * getMemoryBlock().getNumberOfColumns();
|
||||||
int numberOfRows = asciiOffset.intValue() / asciiRowlength;
|
int numberOfRows = asciiOffset.intValue() / asciiRowlength;
|
||||||
int offsetInRow = asciiOffset.intValue() % asciiRowlength;
|
int offsetInRow = asciiOffset.intValue() % asciiRowlength;
|
||||||
|
|
Loading…
Add table
Reference in a new issue