X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Fbinheap.h;h=f367899c3525e78945e43d143e66ee772e079a85;hb=ae7dfec55384883a72867d4877b5283a3c1c8aa1;hp=42253e1b96053ce5c0871e454f01b1ef5f2fd2e3;hpb=79b816d635673f2a195eee048473572b18b718c8;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) { \