SQLite4
Check-in [9ff6991d9f]
Not logged in

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

Overview
Comment:Make LARGEST_UINT64 unsigned. This was causing adjustExponent to fail when compiled with msvc.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | num_work
Files: files | file ages | folders
SHA1: 9ff6991d9f47cbd60a42fce39eb7acf7f130a962
User & Date: peterreid 2013-02-09 05:27:17
Context
2013-02-09
05:29
Create sqlite4_num_isnan. check-in: cc1dc90b47 user: peterreid tags: num_work
05:27
Make LARGEST_UINT64 unsigned. This was causing adjustExponent to fail when compiled with msvc. check-in: 9ff6991d9f user: peterreid tags: num_work
2013-02-08
15:22
Avoid extending the database file when truncating it to the minimum number of blocks required during system shutdown. check-in: 9afc42d70d user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/sqliteInt.h.

   460    460   /*
   461    461   ** Constants for the largest and smallest possible 64-bit signed integers.
   462    462   ** These macros are designed to work correctly on both 32-bit and 64-bit
   463    463   ** compilers.
   464    464   */
   465    465   #define LARGEST_INT64  (0xffffffff|(((i64)0x7fffffff)<<32))
   466    466   #define SMALLEST_INT64 (((i64)-1) - LARGEST_INT64)
   467         -#define LARGEST_UINT64  (0xffffffff|(((i64)0xffffffff)<<32))
          467  +#define LARGEST_UINT64  (0xffffffff|(((u64)0xffffffff)<<32))
   468    468   
   469    469   /* 
   470    470   ** Round up a number to the next larger multiple of 8.  This is used
   471    471   ** to force 8-byte alignment on 64-bit architectures.
   472    472   */
   473    473   #define ROUND8(x)     (((x)+7)&~7)
   474    474