diff options
Diffstat (limited to 'mysys/queues.c')
-rw-r--r-- | mysys/queues.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mysys/queues.c b/mysys/queues.c index 3deee86c23a..78da8a15842 100644 --- a/mysys/queues.c +++ b/mysys/queues.c @@ -170,14 +170,14 @@ void _downheap(register QUEUE *queue, uint idx) static int queue_fix_cmp(QUEUE *queue, void *a, void *b) { return queue->compare(queue->first_cmp_arg, - a+queue->offset_to_key, - b+queue->offset_to_key); + (char*) a+queue->offset_to_key, + (char*) b+queue->offset_to_key); } /* Fix heap when every element was changed */ void queue_fix(QUEUE *queue) { qsort2(queue->root+1,queue->elements, sizeof(void *), - (qsort2_cmp)queue_fix_cmp, queue); + (qsort2_cmp)queue_fix_cmp, queue); } |