X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=ucw%2Fbinheap.h;h=89b4a49cf87b51d933bded35de1f345e4c721ad0;hb=0db6e10eac28f38bfc3b325b13ad95107c58ce1e;hp=42253e1b96053ce5c0871e454f01b1ef5f2fd2e3;hpb=1cf8ac51f5495ccd5187dc220ffc69e95d6e0cfc;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