/ Check-in [63a91441]
Login

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

Overview
Comment:Fix harmless compiler warning seen with MSVC.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 63a914410b5750bd08836864ae456ff09549487c5ce49706fedffa3d4f973059
User & Date: mistachkin 2018-02-04 01:30:54
Context
2018-02-04
20:33
In the CLI, make sure sqlite3_initialize() is called correctly even for non-UTF8 hosts. check-in: a3591fb5 user: drh tags: trunk
01:30
Fix harmless compiler warning seen with MSVC. check-in: 63a91441 user: mistachkin tags: trunk
01:29
Move variable declaration in zipfile extension to fix MSVC compiler error. check-in: ac6a3248 user: mistachkin tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/btree.c.

  4665   4665       ** in the overflow chain. The page number of the first overflow page is
  4666   4666       ** stored in aOverflow[0], etc. A value of 0 in the aOverflow[] array
  4667   4667       ** means "not yet known" (the cache is lazily populated).
  4668   4668       */
  4669   4669       if( (pCur->curFlags & BTCF_ValidOvfl)==0 ){
  4670   4670         int nOvfl = (pCur->info.nPayload-pCur->info.nLocal+ovflSize-1)/ovflSize;
  4671   4671         if( pCur->aOverflow==0
  4672         -       || nOvfl*sizeof(Pgno) > sqlite3MallocSize(pCur->aOverflow)
         4672  +       || nOvfl*(int)sizeof(Pgno) > sqlite3MallocSize(pCur->aOverflow)
  4673   4673         ){
  4674   4674           Pgno *aNew = (Pgno*)sqlite3Realloc(
  4675   4675               pCur->aOverflow, nOvfl*2*sizeof(Pgno)
  4676   4676           );
  4677   4677           if( aNew==0 ){
  4678   4678             return SQLITE_NOMEM_BKPT;
  4679   4679           }else{