summaryrefslogtreecommitdiff
path: root/heap/_check.c
diff options
context:
space:
mode:
Diffstat (limited to 'heap/_check.c')
-rw-r--r--heap/_check.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/heap/_check.c b/heap/_check.c
index d4c4c26b346..233cb8cb0c5 100644
--- a/heap/_check.c
+++ b/heap/_check.c
@@ -163,8 +163,8 @@ static int check_one_rb_key(HP_INFO *info, uint keynr, ulong records,
{
memcpy(&recpos, key + (*keydef->get_key_length)(keydef,key), sizeof(byte*));
key_length= hp_rb_make_key(keydef, info->recbuf, recpos, 0);
- if (ha_key_cmp(keydef->seg, info->recbuf, key, key_length,
- SEARCH_FIND | SEARCH_SAME, &not_used))
+ if (ha_key_cmp(keydef->seg, (uchar*) info->recbuf, (uchar*) key,
+ key_length, SEARCH_FIND | SEARCH_SAME, &not_used))
{
error= 1;
DBUG_PRINT("error",("Record in wrong link: key: %d Record: %lx\n",