]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Another attempt to fix warnings in the randomFunc() function.
authordrh <drh@noemail.net>
Sat, 11 Feb 2012 19:53:24 +0000 (19:53 +0000)
committerdrh <drh@noemail.net>
Sat, 11 Feb 2012 19:53:24 +0000 (19:53 +0000)
FossilOrigin-Name: 768df4e11670ac704d96e3b601d009aaa2fd793a

manifest
manifest.uuid
src/func.c

index bf76b978d3ecd964189d81aa5bc64d297592c91b..da4defa23a4c4066b3dd3c0e1b4bd8ccbdd4ab3e 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C When\screating\sjournal\sfiles\s(including\s-wal\sand\s-shm\sfiles)\stry\sto\sset\sthe\nownership\sto\sbe\sthe\ssame\sas\sthe\soriginal\sdatabase.\s\sThis\swill\sprevent\sroot\nfrom\slocking\sout\sthe\soriginal\sowner\sof\sthe\sfile.
-D 2012-02-11T19:23:48.068
+C Another\sattempt\sto\sfix\swarnings\sin\sthe\srandomFunc()\sfunction.
+D 2012-02-11T19:53:24.226
 F Makefile.arm-wince-mingw32ce-gcc d6df77f1f48d690bd73162294bbba7f59507c72f
 F Makefile.in 3f79a373e57c3b92dabf76f40b065e719d31ac34
 F Makefile.linux-gcc 91d710bdc4998cb015f39edf3cb314ec4f4d7e23
@@ -137,7 +137,7 @@ F src/delete.c 51d32f0a9c880663e54ce309f52e40c325d5e112
 F src/expr.c 00675123e0beec98f999aa4594d2cbe1fec33c1b
 F src/fault.c 160a0c015b6c2629d3899ed2daf63d75754a32bb
 F src/fkey.c 657212460bf5cfd3ae607d12ea62092844c227b5
-F src/func.c 482fb61e26d1c0f983e788276d3700eee26442df
+F src/func.c e75f41c421f00762ab9da7dc8fb90af3972cf99f
 F src/global.c 4cfdca5cb0edd33c4d021baec4ede958cb2c793b
 F src/hash.c 458488dcc159c301b8e7686280ab209f1fb915af
 F src/hash.h 2894c932d84d9f892d4b4023a75e501f83050970
@@ -989,7 +989,7 @@ F tool/tostr.awk e75472c2f98dd76e06b8c9c1367f4ab07e122d06
 F tool/vdbe-compress.tcl d70ea6d8a19e3571d7ab8c9b75cba86d1173ff0f
 F tool/warnings-clang.sh 9f406d66e750e8ac031c63a9ef3248aaa347ef2a
 F tool/warnings.sh fbc018d67fd7395f440c28f33ef0f94420226381
-P 31142ca795005bf664f34000591e6572c72652f2
-R bf3c1343906df15f83435e1a674bd11e
+P 1254dffe4071656a783cd000b1dd40c975ac18cb
+R d9fa00aa327e93350ee48bb2f6ecc475
 U drh
-Z 10acee19c2f6805ba89a4f170956f4c5
+Z 4e53a459dae4b9322244fc7645ecba60
index be561debed16c082406e85c187e4efd42672180c..fb7ca58e611dcb3bbbeca4a04ac953febae82ce1 100644 (file)
@@ -1 +1 @@
-1254dffe4071656a783cd000b1dd40c975ac18cb
\ No newline at end of file
+768df4e11670ac704d96e3b601d009aaa2fd793a
\ No newline at end of file
index 385582923d73445fa38efcb9910b539b89548183..c66ad28aba5914eb25870176d8edbc94ba09e9d5 100644 (file)
@@ -416,7 +416,7 @@ static void randomFunc(
     ** 2s complement of that positive value.  The end result can
     ** therefore be no less than -9223372036854775807.
     */
-    r = -(r ^ (((sqlite3_uint64)1)<<63));
+    r = -(r & LARGEST_INT64);
   }
   sqlite3_result_int64(context, r);
 }