summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
Diffstat (limited to 'sql')
-rw-r--r--sql/field.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/field.h b/sql/field.h
index 92705b9aac4..4fcdb50f8c7 100644
--- a/sql/field.h
+++ b/sql/field.h
@@ -1432,7 +1432,7 @@ public:
int cmp(const char *a, const char *b)
{
DBUG_ASSERT(ptr == a);
- return Field_bit::key_cmp(b, bytes_in_rec+test(bit_len));
+ return Field_bit::key_cmp((const byte *) b, bytes_in_rec+test(bit_len));
}
int key_cmp(const byte *a, const byte *b)
{ return cmp_binary((char *) a, (char *) b); }