X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=inline;f=ucw%2Fbinheap.h;h=f367899c3525e78945e43d143e66ee772e079a85;hb=6912c77a66798de162fe31f79581cd7b5c97f12c;hp=42253e1b96053ce5c0871e454f01b1ef5f2fd2e3;hpb=0b3fa7642199922ce6c35ab9d09adcda51913f24;p=libucw.git diff --git a/ucw/binheap.h b/ucw/binheap.h index 42253e1b..f367899c 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 @@ -181,7 +182,7 @@ BH_PREFIX(init)(BH_HEAP *heap) #define BH_FOR_ALL(bh_px, bh_heap, bh_var) \ do { \ struct bh_node *bh_stack[32]; \ - uns bh_sp = 0; \ + uint bh_sp = 0; \ if (bh_stack[0] = (bh_heap)->root.first_son) \ bh_sp++; \ while (bh_sp) { \