/ Check-in [831156a4]
Login

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

Overview
Comment:Fix compiler warnings that arise if the PAGERTRACE macro is turned on. This changes does not affect production builds.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 831156a4bd7c4408085f7c5584cdeebd1953c539972f80c5ef29bc147008630e
User & Date: drh 2017-08-11 18:59:00
Context
2017-08-12
01:09
Size and performance micro-optimization on sqlite3SrcListIndexedBy(). check-in: 28a5aec1 user: drh tags: trunk
2017-08-11
19:16
Merge the latest enhancements from trunk. check-in: 47e71695 user: drh tags: begin-concurrent
18:59
Fix compiler warnings that arise if the PAGERTRACE macro is turned on. This changes does not affect production builds. check-in: 831156a4 user: drh tags: trunk
18:55
Improved comments in the header of the LSM1 vtab module. No code changes. check-in: aa49926d user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/pager.c.

   124    124   ** The following two macros are used within the PAGERTRACE() macros above
   125    125   ** to print out file-descriptors. 
   126    126   **
   127    127   ** PAGERID() takes a pointer to a Pager struct as its argument. The
   128    128   ** associated file-descriptor is returned. FILEHANDLEID() takes an sqlite3_file
   129    129   ** struct as its argument.
   130    130   */
   131         -#define PAGERID(p) ((int)(p->fd))
   132         -#define FILEHANDLEID(fd) ((int)fd)
          131  +#define PAGERID(p) (SQLITE_PTR_TO_INT(p->fd))
          132  +#define FILEHANDLEID(fd) (SQLITE_PTR_TO_INT(fd))
   133    133   
   134    134   /*
   135    135   ** The Pager.eState variable stores the current 'state' of a pager. A
   136    136   ** pager may be in any one of the seven states shown in the following
   137    137   ** state diagram.
   138    138   **
   139    139   **                            OPEN <------+------+