[libgee] Fix a bug in PriorityQueue's iterator



commit c11e11e24dd4a2ff0ec4c21d944200d1f333b348
Author: Didier 'Ptitjes <ptitjes free fr>
Date:   Fri Sep 25 22:14:47 2009 +0200

    Fix a bug in PriorityQueue's iterator

 gee/priorityqueue.vala |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gee/priorityqueue.vala b/gee/priorityqueue.vala
index e988e12..b9b9d66 100644
--- a/gee/priorityqueue.vala
+++ b/gee/priorityqueue.vala
@@ -810,6 +810,8 @@ public class Gee.PriorityQueue<G> : Gee.AbstractQueue<G> {
 					return true;
 				} else if (node.brothers_next != null) {
 					_next = node.brothers_next;
+					from_type1_children = false;
+					from_type2_child = false;
 					return true;
 				}
 				from_type1_children = true;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]