summaryrefslogtreecommitdiff
path: root/storage/myisam/mi_rsamepos.c
diff options
context:
space:
mode:
Diffstat (limited to 'storage/myisam/mi_rsamepos.c')
-rw-r--r--storage/myisam/mi_rsamepos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/myisam/mi_rsamepos.c b/storage/myisam/mi_rsamepos.c
index a1d96fb7104..35cdd41e297 100644
--- a/storage/myisam/mi_rsamepos.c
+++ b/storage/myisam/mi_rsamepos.c
@@ -32,7 +32,7 @@ int mi_rsame_with_pos(MI_INFO *info, byte *record, int inx, my_off_t filepos)
{
DBUG_ENTER("mi_rsame_with_pos");
- if (inx < -1 || ! (((ulonglong) 1 << inx) & info->s->state.key_map))
+ if (inx < -1 || ! mi_is_key_active(info->s->state.key_map, inx))
{
DBUG_RETURN(my_errno=HA_ERR_WRONG_INDEX);
}