diff options
Diffstat (limited to 'storage/innobase/fts/fts0que.cc')
-rw-r--r-- | storage/innobase/fts/fts0que.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/storage/innobase/fts/fts0que.cc b/storage/innobase/fts/fts0que.cc index afd2e894017..c912f5e0764 100644 --- a/storage/innobase/fts/fts0que.cc +++ b/storage/innobase/fts/fts0que.cc @@ -606,7 +606,8 @@ fts_ranking_words_add( /* Set ranking words */ ut_ad(byte_offset < ranking->words_len); bit_offset = pos % CHAR_BIT; - ranking->words[byte_offset] |= 1 << bit_offset; + ranking->words[byte_offset] = static_cast<byte>( + ranking->words[byte_offset] | 1 << bit_offset); } /*******************************************************************//** |