/ Check-in [6a71ba9c]
Login

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

Overview
Comment:Change an implicit i64-to-int cast in pager.c to an explicit cast.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 6a71ba9ce930838d44ed8d399075ba0723c9132b
User & Date: dan 2011-12-30 09:00:19
Context
2011-12-30
10:54
Minor changes to fix compilation with SQLITE_OMIT_WAL and SQLITE_OMIT_WSD defined. check-in: 26a513a8 user: dan tags: trunk
09:00
Change an implicit i64-to-int cast in pager.c to an explicit cast. check-in: 6a71ba9c user: dan tags: trunk
05:08
Fix some typos in comments. No code changes. check-in: 4edc5994 user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/pager.c.

  4366   4366       rc = sqlite3OsFullPathname(pVfs, zFilename, nPathname, zPathname);
  4367   4367       nPathname = sqlite3Strlen30(zPathname);
  4368   4368       z = zUri = &zFilename[sqlite3Strlen30(zFilename)+1];
  4369   4369       while( *z ){
  4370   4370         z += sqlite3Strlen30(z)+1;
  4371   4371         z += sqlite3Strlen30(z)+1;
  4372   4372       }
  4373         -    nUri = &z[1] - zUri;
         4373  +    nUri = (int)(&z[1] - zUri);
         4374  +    assert( nUri>=0 );
  4374   4375       if( rc==SQLITE_OK && nPathname+8>pVfs->mxPathname ){
  4375   4376         /* This branch is taken when the journal path required by
  4376   4377         ** the database being opened will be more than pVfs->mxPathname
  4377   4378         ** bytes in length. This means the database cannot be opened,
  4378   4379         ** as it will not be possible to open the journal file or even
  4379   4380         ** check for a hot-journal before reading.
  4380   4381         */