mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-11-23 12:49:45 +00:00
GP-4952: Iterate in the correct direction.
This commit is contained in:
parent
141e358ca7
commit
5b3ff02983
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user