mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 09:49:23 +02:00
GP-4952: Iterate in the correct direction.
This commit is contained in:
parent
141e358ca7
commit
5b3ff02983
1 changed files with 3 additions and 3 deletions
|
@ -170,7 +170,7 @@ public class ValueLocation {
|
||||||
ListIterator<Varnode> itB = that.nodes.listIterator(that.nodeCount());
|
ListIterator<Varnode> itB = that.nodes.listIterator(that.nodeCount());
|
||||||
Varnode[] result = new Varnode[Math.max(this.nodeCount(), that.nodeCount())];
|
Varnode[] result = new Varnode[Math.max(this.nodeCount(), that.nodeCount())];
|
||||||
int i = result.length;
|
int i = result.length;
|
||||||
while (itA.hasNext() && itB.hasPrevious()) {
|
while (itA.hasPrevious() && itB.hasPrevious()) {
|
||||||
Varnode vnA = itA.previous();
|
Varnode vnA = itA.previous();
|
||||||
Varnode vnB = itB.previous();
|
Varnode vnB = itB.previous();
|
||||||
if (vnA.getSize() != vnB.getSize()) {
|
if (vnA.getSize() != vnB.getSize()) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue