Index: third_party/sqlite/src/ext/fts1/simple_tokenizer.c |
diff --git a/third_party/sqlite/src/ext/fts1/simple_tokenizer.c b/third_party/sqlite/src/ext/fts1/simple_tokenizer.c |
index d00a77089d871ccbd6528a943ab79045b0445a3a..0ddc7055af74588431deb6a78c045dd26274919c 100644 |
--- a/third_party/sqlite/src/ext/fts1/simple_tokenizer.c |
+++ b/third_party/sqlite/src/ext/fts1/simple_tokenizer.c |
@@ -138,7 +138,7 @@ static int simpleNext( |
** case-insensitivity. |
*/ |
char ch = c->pCurrent[ii]; |
- c->zToken[ii] = (unsigned char)ch<0x80 ? tolower(ch) : ch; |
+ c->zToken[ii] = (unsigned char)ch<0x80 ? tolower((unsigned char)ch):ch; |
} |
c->zToken[n] = '\0'; |
*ppToken = c->zToken; |