summaryrefslogtreecommitdiff
path: root/heap/hp_rkey.c
diff options
context:
space:
mode:
Diffstat (limited to 'heap/hp_rkey.c')
-rw-r--r--heap/hp_rkey.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/heap/hp_rkey.c b/heap/hp_rkey.c
index 92d2982a457..91d762ab4db 100644
--- a/heap/hp_rkey.c
+++ b/heap/hp_rkey.c
@@ -38,7 +38,8 @@ int heap_rkey(HP_INFO *info, byte *record, int inx, const byte *key,
custom_arg.keyseg= info->s->keydef[inx].seg;
custom_arg.key_length= info->lastkey_len=
- hp_rb_pack_key(keyinfo, info->recbuf, key, key_len);
+ hp_rb_pack_key(keyinfo, (uchar*) info->recbuf,
+ (uchar*) key, key_len);
custom_arg.search_flag= SEARCH_FIND | SEARCH_SAME;
/* for next rkey() after deletion */
if (find_flag == HA_READ_AFTER_KEY)