mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 10:14:19 +01:00
bugfix
This commit is contained in:
parent
391242359a
commit
d493b2df57
1 changed files with 3 additions and 3 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue