diff --git a/lemon/fourary_heap.h b/lemon/fourary_heap.h --- a/lemon/fourary_heap.h +++ b/lemon/fourary_heap.h @@ -165,14 +165,16 @@ } void bubbleDown(int hole, Pair p, int length) { - int child = firstChild(hole); - while( child1 ) { - child = findMin(child,length); - if( !less(_data[child], p) ) - goto ok; - move(_data[child], hole); - hole = child; - child = firstChild(hole); + if( length>1 ) { + int child = firstChild(hole); + while( child