/ Check-in [857b2ba6d0]
Login

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

Overview
Comment:Fix harmless compiler warning seen with MSVC for x64.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 857b2ba6d05d6f5a8cfdf269bae9005b25e1903ab9dc6b70546979d8c633f03b
User & Date: mistachkin 2019-07-29 02:49:14
Context
2019-07-29
02:52
Sync up warning related compiler options in the Makefiles for MSVC. check-in: e77d48d1dd user: mistachkin tags: trunk
02:49
Fix harmless compiler warning seen with MSVC for x64. check-in: 857b2ba6d0 user: mistachkin tags: trunk
2019-07-26
20:33
Update RBU so that it supports indexes on expressions. check-in: 6bfa44da22 user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to ext/session/sqlite3session.c.

  1833   1833   */
  1834   1834   static int sessionBufferGrow(SessionBuffer *p, size_t nByte, int *pRc){
  1835   1835     if( *pRc==SQLITE_OK && (size_t)(p->nAlloc-p->nBuf)<nByte ){
  1836   1836       u8 *aNew;
  1837   1837       i64 nNew = p->nAlloc ? p->nAlloc : 128;
  1838   1838       do {
  1839   1839         nNew = nNew*2;
  1840         -    }while( (nNew-p->nBuf)<nByte );
         1840  +    }while( (size_t)(nNew-p->nBuf)<nByte );
  1841   1841   
  1842   1842       aNew = (u8 *)sqlite3_realloc64(p->aBuf, nNew);
  1843   1843       if( 0==aNew ){
  1844   1844         *pRc = SQLITE_NOMEM;
  1845   1845       }else{
  1846   1846         p->aBuf = aNew;
  1847   1847         p->nAlloc = nNew;