Commit d493b2df authored by unknown's avatar unknown

bugfix

parent 39124235
......@@ -167,11 +167,11 @@ void _downheap(register QUEUE *queue, uint idx)
}
static int queue_fix_cmp(QUEUE *queue, void *a, void *b)
static int queue_fix_cmp(QUEUE *queue, void **a, void **b)
{
return queue->compare(queue->first_cmp_arg,
(char*) a+queue->offset_to_key,
(char*) b+queue->offset_to_key);
(char*) (*a)+queue->offset_to_key,
(char*) (*b)+queue->offset_to_key);
}
/* Fix heap when every element was changed */
......
Markdown is supported
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