diff options
Diffstat (limited to 'myisam/ft_parser.c')
-rw-r--r-- | myisam/ft_parser.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/myisam/ft_parser.c b/myisam/ft_parser.c index 0d1495da548..c1b1190bcab 100644 --- a/myisam/ft_parser.c +++ b/myisam/ft_parser.c @@ -38,8 +38,9 @@ typedef struct st_ft_docstat { static int FT_WORD_cmp(void* cmp_arg, FT_WORD *w1, FT_WORD *w2) { return _mi_compare_text(default_charset_info, - (uchar*) w1->pos,w1->len, - (uchar*) w2->pos, w2->len,(my_bool)cmp_arg); + (uchar*) w1->pos, w1->len, + (uchar*) w2->pos, w2->len, + (my_bool) (cmp_arg != 0)); } static int walk_and_copy(FT_WORD *word,uint32 count,FT_DOCSTAT *docstat) |