/ Check-in [d5acf3af]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix a compiler warning in FTS5.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:d5acf3af65f9608d4096b9b78289d84b21cd1ea463457f858ffeb20d5bd5d123
User & Date: drh 2019-03-19 20:13:41
Context
2019-03-19
20:42
Enhance the VACUUM INTO command so that it works on read-only databases. check-in: 55be6d0a user: drh tags: trunk
20:13
Fix a compiler warning in FTS5. check-in: d5acf3af user: drh tags: trunk
15:36
When computing the amount of scratch memory needed during a rebalance operation, assume the worst case for the number of cells per page, rather than relying on the BtPage.nCell value, which might be incorrect for a corrupt database. check-in: a420ebd0 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to ext/fts5/fts5_index.c.

  2470   2470   
  2471   2471       p->rc = sqlite3Fts5HashScanInit(p->pHash, (const char*)pTerm, nTerm);
  2472   2472       sqlite3Fts5HashScanEntry(p->pHash, (const char**)&z, &pList, &nList);
  2473   2473       n = (z ? (int)strlen((const char*)z) : 0);
  2474   2474       if( pList ){
  2475   2475         pLeaf = fts5IdxMalloc(p, sizeof(Fts5Data));
  2476   2476         if( pLeaf ){
  2477         -        pLeaf->p = pList;
         2477  +        pLeaf->p = (u8*)pList;
  2478   2478         }
  2479   2479       }
  2480   2480     }else{
  2481   2481       p->rc = sqlite3Fts5HashQuery(p->pHash, sizeof(Fts5Data), 
  2482   2482           (const char*)pTerm, nTerm, (void**)&pLeaf, &nList
  2483   2483       );
  2484   2484       if( pLeaf ){