X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=lib%2Fprio_heap.c;h=a7af6f85eca8a239c39aabdc46a91ba9f861af1b;hb=4daf7a0c0b3dd3c2e2ec829ecee8608d04d67773;hp=471944a54e23ecb964397a76716ea60236c5fdf3;hpb=8707d8b8c0cbdf4441507f8dded194167da896c7;p=safe%2Fjmp%2Flinux-2.6 diff --git a/lib/prio_heap.c b/lib/prio_heap.c index 471944a..a7af6f8 100644 --- a/lib/prio_heap.c +++ b/lib/prio_heap.c @@ -31,7 +31,7 @@ void *heap_insert(struct ptr_heap *heap, void *p) if (heap->size < heap->max) { /* Heap insertion */ - int pos = heap->size++; + pos = heap->size++; while (pos > 0 && heap->gt(p, ptrs[(pos-1)/2])) { ptrs[pos] = ptrs[(pos-1)/2]; pos = (pos-1)/2;