diff options
author | monty@hundin.mysql.fi <> | 2001-12-10 00:08:24 +0200 |
---|---|---|
committer | monty@hundin.mysql.fi <> | 2001-12-10 00:08:24 +0200 |
commit | 6b02f13cf3f0b4757398ef8e6915eacb8bfe70a0 (patch) | |
tree | 3e69c63ee516f0cf84e4f42523b616db0f833200 /myisam/ft_update.c | |
parent | a1f9987bff24b42881f8bf0e2fdc4a13930c7273 (diff) | |
download | mariadb-git-6b02f13cf3f0b4757398ef8e6915eacb8bfe70a0.tar.gz |
Removed compiler warnings.
Added new operators to be used with gcc 3.0.x
Update of query cache code.
Added semaphores for Windows (not yet in use)
Added pthread_mutex_trylock for windows.
Diffstat (limited to 'myisam/ft_update.c')
-rw-r--r-- | myisam/ft_update.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/myisam/ft_update.c b/myisam/ft_update.c index 3d394eeacac..e83f0a21491 100644 --- a/myisam/ft_update.c +++ b/myisam/ft_update.c @@ -19,6 +19,7 @@ /* functions to work with full-text indices */ #include "ftdefs.h" +#include <math.h> /************************************************************** This is to make ft-code to ignore keyseg.length at all * @@ -186,7 +187,7 @@ int _mi_ft_update(MI_INFO *info, uint keynr, byte *keybuf, cmp=_mi_compare_text(default_charset_info, (uchar*) old_word->pos,old_word->len, (uchar*) new_word->pos,new_word->len,0); - cmp2= cmp ? 0 : (abs(old_word->weight - new_word->weight) > 1.e-5); + cmp2= cmp ? 0 : (fabs(old_word->weight - new_word->weight) > 1.e-5); if (cmp < 0 || cmp2) { |