/ Check-in [bc03d99a]
Login

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

Overview
Comment:Fix one more compiler warning missed by the previous check-in.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: bc03d99a78e90c02b69037e5f5f81537b5a3ac60
User & Date: drh 2012-03-19 14:57:49
Context
2012-03-19
17:42
Add additional test cases to e_insert.test. Update evidence marks. no changes to core code. check-in: 036395c0 user: drh tags: trunk
16:21
Merge latest trunk changes into apple-osx branch. check-in: f999197b user: dan tags: apple-osx
14:57
Fix one more compiler warning missed by the previous check-in. check-in: bc03d99a user: drh tags: trunk
14:51
Suppress harmless compiler warnings on windows in FTS4 and RTREE. check-in: 4fd68647 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to ext/fts3/fts3.c.

  3986   3986         if( pTab->bDescIdx==0 || pDL->pNextDocid==0 ){
  3987   3987           pDL->iDocid += iDelta;
  3988   3988         }else{
  3989   3989           pDL->iDocid -= iDelta;
  3990   3990         }
  3991   3991         pDL->pList = pIter;
  3992   3992         fts3PoslistCopy(0, &pIter);
  3993         -      pDL->nList = (pIter - pDL->pList);
         3993  +      pDL->nList = (int)(pIter - pDL->pList);
  3994   3994   
  3995   3995         /* pIter now points just past the 0x00 that terminates the position-
  3996   3996         ** list for document pDL->iDocid. However, if this position-list was
  3997   3997         ** edited in place by fts3EvalNearTrim(), then pIter may not actually
  3998   3998         ** point to the start of the next docid value. The following line deals
  3999   3999         ** with this case by advancing pIter past the zero-padding added by
  4000   4000         ** fts3EvalNearTrim().  */