1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-27 20:41:58 +03:00

Fix a couple C99-isms in FTS5 that cause compile errors on MSVC.

FossilOrigin-Name: 584848d4396d7755027fab377c97e40fbcc90d21
This commit is contained in:
mistachkin
2016-01-15 05:39:55 +00:00
parent 2d80151f32
commit 1e38927c12
3 changed files with 12 additions and 10 deletions

View File

@ -1875,13 +1875,15 @@ static void fts5SegIterNext(
int iOff;
int bNewTerm = 0;
int nKeep = 0;
u8 *a;
int n;
assert( pbNewTerm==0 || *pbNewTerm==0 );
assert( p->pConfig->eDetail!=FTS5_DETAIL_NONE );
/* Search for the end of the position list within the current page. */
u8 *a = pLeaf->p;
int n = pLeaf->szLeaf;
a = pLeaf->p;
n = pLeaf->szLeaf;
ASSERT_SZLEAF_OK(pLeaf);
iOff = pIter->iLeafOffset + pIter->nPos;