GP-4952: Iterate in the correct direction.

This commit is contained in:
Dan 2024-09-23 09:10:06 -04:00 committed by ghidra1
parent 141e358ca7
commit 5b3ff02983

View file

@ -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()) {