/ Check-in [0723effc9c]
Login

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

Overview
Comment:Fix a harmless compiler warning on MSVC.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 0723effc9ccae7c660fb847b36ce9324e0cb5042
User & Date: drh 2014-03-05 19:04:46
Context
2014-03-05
19:13
Avoid running a couple of test cases that use realloc() extensively if SQLITE_MEMDEBUG is defined. check-in: e406d4bb78 user: dan tags: trunk
19:04
Fix a harmless compiler warning on MSVC. check-in: 0723effc9c user: drh tags: trunk
17:29
Add SQLITE_OMIT_CTE to the list of compile options that might be returned by "PRAGMA compile_options". check-in: f33f2b3f92 user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/build.c.

  3469   3469     /* Sanity checking on calling parameters */
  3470   3470     assert( iStart>=0 );
  3471   3471     assert( nExtra>=1 );
  3472   3472     assert( pSrc!=0 );
  3473   3473     assert( iStart<=pSrc->nSrc );
  3474   3474   
  3475   3475     /* Allocate additional space if needed */
  3476         -  if( pSrc->nSrc+nExtra>pSrc->nAlloc ){
         3476  +  if( (u32)pSrc->nSrc+nExtra>pSrc->nAlloc ){
  3477   3477       SrcList *pNew;
  3478   3478       int nAlloc = pSrc->nSrc+nExtra;
  3479   3479       int nGot;
  3480   3480       pNew = sqlite3DbRealloc(db, pSrc,
  3481   3481                  sizeof(*pSrc) + (nAlloc-1)*sizeof(pSrc->a[0]) );
  3482   3482       if( pNew==0 ){
  3483   3483         assert( db->mallocFailed );