/ Check-in [2d544711]
Login

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

Overview
Comment:Fix harmless compiler warning in FTS5.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | msvcFixes
Files: files | file ages | folders
SHA3-256: 2d544711c7e9f4c2c3ca7ee7d588948d048da82e63c82f41c999fce947d6661d
User & Date: mistachkin 2018-03-07 14:49:32
Context
2018-03-07
14:53
Another tweak to the MSVC clean target. Closed-Leaf check-in: 493abf10 user: mistachkin tags: msvcFixes
14:49
Fix harmless compiler warning in FTS5. check-in: 2d544711 user: mistachkin tags: msvcFixes
14:42
Fix utility compilation issues with MSVC. check-in: 5bd5a798 user: mistachkin tags: msvcFixes
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to ext/fts5/fts5_expr.c.

  1672   1672       }
  1673   1673   
  1674   1674       if( sCtx.pPhrase==0 ){
  1675   1675         /* This happens when parsing a token or quoted phrase that contains
  1676   1676         ** no token characters at all. (e.g ... MATCH '""'). */
  1677   1677         sCtx.pPhrase = sqlite3Fts5MallocZero(&pParse->rc, sizeof(Fts5ExprPhrase));
  1678   1678       }else if( sCtx.pPhrase->nTerm ){
  1679         -      sCtx.pPhrase->aTerm[sCtx.pPhrase->nTerm-1].bPrefix = bPrefix;
         1679  +      sCtx.pPhrase->aTerm[sCtx.pPhrase->nTerm-1].bPrefix = (u8)bPrefix;
  1680   1680       }
  1681   1681       pParse->apPhrase[pParse->nPhrase-1] = sCtx.pPhrase;
  1682   1682     }
  1683   1683   
  1684   1684     return sCtx.pPhrase;
  1685   1685   }
  1686   1686