/ Check-in [5314ca39]
Login

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

Overview
Comment:Fix a typo in the IS_BIG_INT macro used by coverage test instrumentation.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 5314ca3928dab1c76fa4ec5dbe110e3212c95e9f
User & Date: dan 2010-07-14 06:20:27
Context
2010-07-14
07:06
Test that a corrupted WAL hash-table does not put the library into an infinite loop. check-in: c73886ed user: dan tags: trunk
06:20
Fix a typo in the IS_BIG_INT macro used by coverage test instrumentation. check-in: 5314ca39 user: dan tags: trunk
01:45
Fix the unix driver to return an I/O error if unlink fails for any reason other than the file not existing in the first place. check-in: 90d73c66 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/sqliteInt.h.

   273    273   #endif
   274    274   
   275    275   /*
   276    276   ** Return true (non-zero) if the input is a integer that is too large
   277    277   ** to fit in 32-bits.  This macro is used inside of various testcase()
   278    278   ** macros to verify that we have tested SQLite for large-file support.
   279    279   */
   280         -#define IS_BIG_INT(X)  (((X)&(i64)0xffffffff)!=0)
          280  +#define IS_BIG_INT(X)  (((X)&~(i64)0xffffffff)!=0)
   281    281   
   282    282   /*
   283    283   ** The macro unlikely() is a hint that surrounds a boolean
   284    284   ** expression that is usually false.  Macro likely() surrounds
   285    285   ** a boolean expression that is usually true.  GCC is able to
   286    286   ** use these hints to generate better code, sometimes.
   287    287   */