Commit 07a060d7 authored by Christian Würdig's avatar Christian Würdig
Browse files

fixed off-by-one error

[r13421]
parent 360e6fe3
...@@ -106,7 +106,7 @@ void pqueue_put(pqueue *q, void *data, double key) { ...@@ -106,7 +106,7 @@ void pqueue_put(pqueue *q, void *data, double key) {
ARR_APP1(pqueue_el_t, q->elems, el); ARR_APP1(pqueue_el_t, q->elems, el);
pqueue_sift_up(q, ARR_LEN(q->elems)); pqueue_sift_up(q, ARR_LEN(q->elems) - 1);
} }
/** /**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment