From 4370527b834a3acd2ecae9c9f98c4d352f91c159 Mon Sep 17 00:00:00 2001 From: Tomas Valla Date: Tue, 5 Nov 2013 19:40:26 +0100 Subject: [PATCH] binomial heaps: Added missing node order initialization. --- ucw/binheap.h | 1 + 1 file changed, 1 insertion(+) 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 -- 2.39.2