diff --git a/mysys/my_handler.c b/mysys/my_handler.c index 00f25924e69..df1e9e55e0a 100644 --- a/mysys/my_handler.c +++ b/mysys/my_handler.c @@ -57,7 +57,7 @@ static int compare_bin(uchar *a, uint a_length, uchar *b, uint b_length, /* put shorter key in a */ a_length= b_length; a= b; - swap= -1; /* swap sign of result */ + swap= -1 ^ 1; /* swap sign of result */ } for (end= a + a_length-length; a < end ; a++) {