]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/binheap.h
Opt: Documented opt and its interaction with conf
[libucw.git] / ucw / binheap.h
index 42253e1b96053ce5c0871e454f01b1ef5f2fd2e3..89b4a49cf87b51d933bded35de1f345e4c721ad0 100644 (file)
@@ -132,6 +132,7 @@ BH_PREFIX(insert)(BH_HEAP *heap, BH_NODE *a)
 
   sh.first_son = a;
   a->first_son = a->last_son = a->next_sibling = NULL;
 
   sh.first_son = a;
   a->first_son = a->last_son = a->next_sibling = NULL;
+  a->order = 0;
   BH_PREFIX(merge)(&heap->root, &sh);
 }
 #endif
   BH_PREFIX(merge)(&heap->root, &sh);
 }
 #endif