aboutsummaryrefslogtreecommitdiff
path: root/ext/misc/amatch.c
diff options
context:
space:
mode:
authormistachkin <mistachkin@noemail.net>2016-04-12 20:05:06 +0000
committermistachkin <mistachkin@noemail.net>2016-04-12 20:05:06 +0000
commit77fac879d25b6500d3bd028a8e855fc9dc789634 (patch)
tree8afdf9e232e8858a52c7f8a6e2426b0f3f80117e /ext/misc/amatch.c
parent02267cc2136bc3cde2ae9cc3a02f91e2dc497793 (diff)
downloadsqlite-77fac879d25b6500d3bd028a8e855fc9dc789634.tar.gz
sqlite-77fac879d25b6500d3bd028a8e855fc9dc789634.zip
More harmless compiler warning fixes.
FossilOrigin-Name: ab69527c1608da0b668f3b49e967661dd99cc3d4
Diffstat (limited to 'ext/misc/amatch.c')
-rw-r--r--ext/misc/amatch.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/misc/amatch.c b/ext/misc/amatch.c
index 852491988..efe76566e 100644
--- a/ext/misc/amatch.c
+++ b/ext/misc/amatch.c
@@ -625,10 +625,10 @@ static int amatchLoadOneRule(
}else{
memset(pRule, 0, sizeof(*pRule));
pRule->zFrom = &pRule->zTo[nTo+1];
- pRule->nFrom = nFrom;
+ pRule->nFrom = (amatch_len)nFrom;
memcpy(pRule->zFrom, zFrom, nFrom+1);
memcpy(pRule->zTo, zTo, nTo+1);
- pRule->nTo = nTo;
+ pRule->nTo = (amatch_len)nTo;
pRule->rCost = rCost;
pRule->iLang = (int)iLang;
}
@@ -1081,7 +1081,7 @@ static void amatchAddWord(
pWord->rCost = rCost;
pWord->iSeq = pCur->nWord++;
amatchWriteCost(pWord);
- pWord->nMatch = nMatch;
+ pWord->nMatch = (short)nMatch;
pWord->pNext = pCur->pAllWords;
pCur->pAllWords = pWord;
pWord->sCost.zKey = pWord->zCost;
@@ -1162,7 +1162,7 @@ static int amatchNext(sqlite3_vtab_cursor *cur){
#endif
nWord = (int)strlen(pWord->zWord+2);
if( nWord+20>nBuf ){
- nBuf = nWord+100;
+ nBuf = (char)(nWord+100);
zBuf = sqlite3_realloc(zBuf, nBuf);
if( zBuf==0 ) return SQLITE_NOMEM;
}