summaryrefslogtreecommitdiff
path: root/mysys/queues.c
diff options
context:
space:
mode:
authorunknown <serg@serg.mysql.com>2001-11-17 14:28:04 +0100
committerunknown <serg@serg.mysql.com>2001-11-17 14:28:04 +0100
commitd493b2df5793ea14394d7705fa5c2a60c2a635b7 (patch)
tree8f1429e8d97edfc5171a89da3682c218fb46987e /mysys/queues.c
parent391242359a27e90f92a1a0fa19f84b835e3a9b32 (diff)
downloadmariadb-git-d493b2df5793ea14394d7705fa5c2a60c2a635b7.tar.gz
bugfix
Diffstat (limited to 'mysys/queues.c')
-rw-r--r--mysys/queues.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mysys/queues.c b/mysys/queues.c
index 78da8a15842..f1bd6759f46 100644
--- a/mysys/queues.c
+++ b/mysys/queues.c
@@ -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 */