diff options
author | monty@hundin.mysql.fi <> | 2002-04-26 08:56:28 +0300 |
---|---|---|
committer | monty@hundin.mysql.fi <> | 2002-04-26 08:56:28 +0300 |
commit | d367495e3915fa92094f6416d7eedcd5f6937ee5 (patch) | |
tree | 7412d050274815c36a164eb72d690b8871014e84 /myisam/ft_boolean_search.c | |
parent | a0b1f86f54e49cf7d365f988cbd2094003508821 (diff) | |
download | mariadb-git-d367495e3915fa92094f6416d7eedcd5f6937ee5.tar.gz |
Portability fixes
Diffstat (limited to 'myisam/ft_boolean_search.c')
-rw-r--r-- | myisam/ft_boolean_search.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/myisam/ft_boolean_search.c b/myisam/ft_boolean_search.c index cd0d0d9d052..24b585985c0 100644 --- a/myisam/ft_boolean_search.c +++ b/myisam/ft_boolean_search.c @@ -264,7 +264,8 @@ FT_INFO * ft_init_boolean_search(MI_INFO *info, uint keynr, byte *query, ftbe->weight=1; ftbe->flags=FTB_FLAG_YES; ftbe->nos=1; - ftbe->quot=ftbe->up=0; + ftbe->quot=0; + ftbe->up=0; ftbe->ythresh=ftbe->yweaks=0; ftbe->docid[0]=ftbe->docid[1]=HA_POS_ERROR; ftb->root=ftbe; @@ -288,12 +289,14 @@ int _ftb_strstr(const byte *s0, const byte *e0, while (s0 < e0) { - while (s0 < e0 && cs->to_upper[*s0++] != cs->to_upper[*s1]) + while (s0 < e0 && cs->to_upper[(uint) (uchar) *s0++] != + cs->to_upper[(uint) (uchar) *s1]) /* no-op */; if (s0 >= e0) return 0; p=s1+1; - while (s0 < e0 && p < e1 && cs->to_upper[*s0++] == cs->to_upper[*p++]) + while (s0 < e0 && p < e1 && cs->to_upper[(uint) (uchar) *s0++] == + cs->to_upper[(uint) (uchar) *p++]) /* no-op */; if (p >= e1) return 1; |