Commit 4caf57c3 authored by serg@serg.mysql.com's avatar serg@serg.mysql.com

bugfix

parent ced56f7d
......@@ -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