When looking for the second largest root version, the l variable will be off the...
authorDana Jansens <danakj@orodu.net>
Fri, 30 Oct 2009 22:18:09 +0000 (18:18 -0400)
committerDana Jansens <danakj@orodu.net>
Thu, 12 Nov 2009 21:54:05 +0000 (16:54 -0500)
glib/gtree.c

index 59be18f53885ce64fc437630374d83837ca78af1..77ee5fc62535afb45e5a7dfb83939c86da35ec4e 100644 (file)
@@ -281,7 +281,7 @@ g_tree_root_find_version (GTree *tree,
         l = m+1;
     }
   g_assert (r->version < version);
-  g_assert (l->version > version);
+  g_assert (l == v+nv || l->version > version);
   return r;
 }