/ Check-in [d33a1ff3]
Login

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

Overview
Comment:Fix harmless compiler warning in an assert statement.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: d33a1ff3aad0bfabf70a98ac338a68f82074e4fe
User & Date: mistachkin 2014-10-27 19:42:02
Context
2014-10-27
19:58
Fix compilation issue with MSVC due to a misplaced variable declaration. check-in: 9588b345 user: mistachkin tags: trunk
19:42
Fix harmless compiler warning in an assert statement. check-in: d33a1ff3 user: mistachkin tags: trunk
19:39
Fix a typo in the macro name of an #ifdef check-in: 9646a136 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/btree.c.

  1304   1304     
  1305   1305     assert( sqlite3PagerIswriteable(pPage->pDbPage) );
  1306   1306     assert( pPage->pBt );
  1307   1307     assert( sqlite3_mutex_held(pPage->pBt->mutex) );
  1308   1308     assert( nByte>=0 );  /* Minimum cell size is 4 */
  1309   1309     assert( pPage->nFree>=nByte );
  1310   1310     assert( pPage->nOverflow==0 );
  1311         -  assert( nByte < pPage->pBt->usableSize-8 );
         1311  +  assert( nByte < (int)(pPage->pBt->usableSize-8) );
  1312   1312   
  1313   1313     assert( pPage->cellOffset == hdr + 12 - 4*pPage->leaf );
  1314   1314     gap = pPage->cellOffset + 2*pPage->nCell;
  1315   1315     assert( gap<=65536 );
  1316   1316     top = get2byte(&data[hdr+5]);
  1317   1317     if( gap>top ){
  1318   1318       if( top==0 ){