X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fheap.h;h=4f83776f5cb0dff38dbf646a702b23775926ebed;hb=2bc83c3abf7a59da99f7f713927ec36abb994093;hp=b7bc1065f5e159f646db5a9e6cb581a765324ac7;hpb=2bf0256856dcf5c387f45369f3269e532c06fa6e;p=libucw.git diff --git a/lib/heap.h b/lib/heap.h index b7bc1065..4f83776f 100644 --- a/lib/heap.h +++ b/lib/heap.h @@ -63,11 +63,11 @@ HEAP_BUBBLE_UP_J(heap,num,less,swap); \ } while(0) -#define HEAP_INCREASE(type,heap,num,less,swap) \ +#define HEAP_INCREASE(type,heap,num,less,swap,pos) \ do { \ uns _j, _l; \ type x; \ - _j = 1; \ + _j = pos; \ HEAP_BUBBLE_DOWN_J(heap,num,less,swap); \ } while(0)