X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Fbinheap.h;h=89b4a49cf87b51d933bded35de1f345e4c721ad0;hb=0db6e10eac28f38bfc3b325b13ad95107c58ce1e;hp=42253e1b96053ce5c0871e454f01b1ef5f2fd2e3;hpb=79b816d635673f2a195eee048473572b18b718c8;p=libucw.git diff --git a/ucw/binheap.h b/ucw/binheap.h index 42253e1b..89b4a49c 100644 --- a/ucw/binheap.h +++ b/ucw/binheap.h @@ -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; + a->order = 0; BH_PREFIX(merge)(&heap->root, &sh); } #endif