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

@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -170,7 +170,7 @@ public class ValueLocation {
ListIterator<Varnode> itB = that.nodes.listIterator(that.nodeCount());
Varnode[] result = new Varnode[Math.max(this.nodeCount(), that.nodeCount())];
int i = result.length;
while (itA.hasNext() && itB.hasPrevious()) {
while (itA.hasPrevious() && itB.hasPrevious()) {
Varnode vnA = itA.previous();
Varnode vnB = itB.previous();
if (vnA.getSize() != vnB.getSize()) {