Casting hex literals directly from string to float always results in a
positive number. FossilOrigin-Name: 4b86ccdf4f4eb4339a5706e10ad24f01b6c3939e
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
C Reformatting\sa\sfew\stest\scases\sfor\sclarity.
|
||||
D 2014-07-23T01:59:47.721
|
||||
C Casting\shex\sliterals\sdirectly\sfrom\sstring\sto\sfloat\salways\sresults\sin\sa\npositive\snumber.
|
||||
D 2014-07-23T02:07:11.054
|
||||
F Makefile.arm-wince-mingw32ce-gcc d6df77f1f48d690bd73162294bbba7f59507c72f
|
||||
F Makefile.in 5eb79e334a5de69c87740edd56af6527dd219308
|
||||
F Makefile.linux-gcc 91d710bdc4998cb015f39edf3cb314ec4f4d7e23
|
||||
@@ -601,7 +601,7 @@ F test/fuzz_malloc.test 328f70aaca63adf29b4c6f06505ed0cf57ca7c26
|
||||
F test/fuzzer1.test d4c52aaf3ef923da293a2653cfab33d02f718a36
|
||||
F test/fuzzerfault.test 8792cd77fd5bce765b05d0c8e01b9edcf8af8536
|
||||
F test/genesis.tcl 1e2e2e8e5cc4058549a154ff1892fe5c9de19f98
|
||||
F test/hexlit.test 499de0bfdfd16e8d406f3a4104d275c1a473b2d5
|
||||
F test/hexlit.test 58b653845b60da52161b5f451db9a89c569187d1
|
||||
F test/hook.test 162d7cef7a2d2b04839fe14402934e6a1b79442f
|
||||
F test/icu.test 70df4faca133254c042d02ae342c0a141f2663f4
|
||||
F test/in.test 047c4671328e9032ab95666a67021adbbd36e98e
|
||||
@@ -1184,7 +1184,7 @@ F tool/vdbe_profile.tcl 67746953071a9f8f2f668b73fe899074e2c6d8c1
|
||||
F tool/warnings-clang.sh f6aa929dc20ef1f856af04a730772f59283631d4
|
||||
F tool/warnings.sh 0abfd78ceb09b7f7c27c688c8e3fe93268a13b32
|
||||
F tool/win/sqlite.vsix deb315d026cc8400325c5863eef847784a219a2f
|
||||
P 19054339c47448bcdfd1f7be35daa3826c409077
|
||||
R 52ea51dcf5a265235552cc5fcbffc473
|
||||
P 7e1bbacb11a4689b69856450125cae3d045307af
|
||||
R 8a73a1b568b990d7d0a1847902994baf
|
||||
U drh
|
||||
Z 7e4424638caf7e83118206706ce53455
|
||||
Z d9d4d7765f779882d47568941cd5db2a
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
7e1bbacb11a4689b69856450125cae3d045307af
|
||||
4b86ccdf4f4eb4339a5706e10ad24f01b6c3939e
|
||||
+5
-5
@@ -108,7 +108,7 @@ hexlit1 219 0x00f 15
|
||||
hexlit1 220 0x00F 15
|
||||
|
||||
proc hexlit2 {tnum hex ans} {
|
||||
do_execsql_test hexlit-$tnum "SELECT printf('%7e',CAST($hex AS real))" $ans
|
||||
do_execsql_test hexlit-$tnum "SELECT printf('%7e',CAST('$hex' AS real))" $ans
|
||||
}
|
||||
|
||||
hexlit2 300 0x1 1.000000e+00
|
||||
@@ -142,9 +142,9 @@ hexlit2 327 0x1000000000000000000000000000 3.245186e+32
|
||||
hexlit2 328 0x10000000000000000000000000000 5.192297e+33
|
||||
hexlit2 329 0x100000000000000000000000000000 8.307675e+34
|
||||
|
||||
hexlit2 400 0x07fffffffffffffff 9.223372e+18
|
||||
hexlit2 401 0x08000000000000000 -9.223372e+18
|
||||
hexlit2 402 0x0ffffffffffffffff -1.000000e+00
|
||||
hexlit2 403 0x10000000000000000 1.844674e+19
|
||||
hexlit2 400 0x07fffffffffffffff 9.223372e+18
|
||||
hexlit2 401 0x08000000000000000 9.223372e+18
|
||||
hexlit2 402 0x0ffffffffffffffff 1.844674e+19
|
||||
hexlit2 403 0x10000000000000000 1.844674e+19
|
||||
|
||||
finish_test
|
||||
|
||||
Reference in New Issue
Block a user