Commit 84cf08a6 authored by Maciej (Matthew) Piechotka's avatar Maciej (Matthew) Piechotka
Browse files

Fix the foreach in TreeMap.values

parent eb6affbd
......@@ -1714,7 +1714,7 @@ public class Gee.TreeMap<K,V> : Gee.AbstractBidirSortedMap<K,V> {
public bool foreach (ForallFunc<V> f) {
if (current != null) {
if (!f (current.key)) {
if (!f (current.value)) {
return false;
}
current = current.next;
......@@ -1729,7 +1729,7 @@ public class Gee.TreeMap<K,V> : Gee.AbstractBidirSortedMap<K,V> {
}
}
for (; current != null; current = current.next) {
if (!f (current.key)) {
if (!f (current.value)) {
return false;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment