/ Check-in [33294bbd]
Login

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

Overview
Comment:Fix a warning coming from the Solaris Studio compiler.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 33294bbd1724665832464b33f865a29dc82b90f6
User & Date: drh 2012-02-10 20:43:05
Context
2012-02-11
18:51
Remove a redundant test from the shared-memory logic in os_unix.c. check-in: 31142ca7 user: drh tags: trunk
2012-02-10
20:43
Fix a warning coming from the Solaris Studio compiler. check-in: 33294bbd user: drh tags: trunk
17:38
Disable the ability to have multiple values in the VALUES clause of an INSERT statement when SQLITE_OMIT_COMPOUND_SELECT is used. check-in: 92131195 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Show Whitespace Changes Patch

Changes to src/func.c.

   412    412       ** (or -9223372036854775808) since when you do abs() of that
   413    413       ** number of you get the same value back again.  To do this
   414    414       ** in a way that is testable, mask the sign bit off of negative
   415    415       ** values, resulting in a positive value.  Then take the 
   416    416       ** 2s complement of that positive value.  The end result can
   417    417       ** therefore be no less than -9223372036854775807.
   418    418       */
   419         -    r = -(r ^ (((sqlite3_int64)1)<<63));
          419  +    r = -(r ^ (((sqlite3_uint64)1)<<63));
   420    420     }
   421    421     sqlite3_result_int64(context, r);
   422    422   }
   423    423   
   424    424   /*
   425    425   ** Implementation of randomblob(N).  Return a random blob
   426    426   ** that is N bytes long.