summaryrefslogtreecommitdiff
path: root/myisam/ft_nlq_search.c
diff options
context:
space:
mode:
authormonty@mysql.com <>2004-10-22 18:44:51 +0300
committermonty@mysql.com <>2004-10-22 18:44:51 +0300
commit3afecef4df146c1a44f7f17f640f365e251c4438 (patch)
tree6faefd7a2f197f4031ef94eb74fc71f8f2936185 /myisam/ft_nlq_search.c
parent97b4a3415dd2f107c925496fa5c0c0cd96d5db3c (diff)
downloadmariadb-git-3afecef4df146c1a44f7f17f640f365e251c4438.tar.gz
Fix compiler warnings (detected by Intel's C++ compiler)
Fixed checking of privilege handling in CREATE ... SELECT (Bug #6094)
Diffstat (limited to 'myisam/ft_nlq_search.c')
-rw-r--r--myisam/ft_nlq_search.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/myisam/ft_nlq_search.c b/myisam/ft_nlq_search.c
index c9caf4f39af..83de6acdab9 100644
--- a/myisam/ft_nlq_search.c
+++ b/myisam/ft_nlq_search.c
@@ -99,6 +99,7 @@ static int walk_and_match(FT_WORD *word, uint32 count, ALL_IN_ONE *aio)
info->update|= HA_STATE_AKTIV; /* for _mi_test_if_changed() */
+ /* The following should be safe, even if we compare doubles */
while (!r && gweight)
{
@@ -127,6 +128,7 @@ static int walk_and_match(FT_WORD *word, uint32 count, ALL_IN_ONE *aio)
#else
#error
#endif
+ /* The following should be safe, even if we compare doubles */
if (tmp_weight==0)
DBUG_RETURN(doc_cnt); /* stopword, doc_cnt should be 0 */