1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-11 01:42:22 +03:00

Fix an error in [b22cdd67] that can cause a negative infinity to be (rarely)

reported as a positive infinity.

FossilOrigin-Name: 9780b23ca375de6a542516fbc03eb39d5a393ca577718fda231d0d0ccf3b1c7e
This commit is contained in:
drh
2017-09-12 15:05:34 +00:00
parent b9772e7fe8
commit 3ba18adde5
4 changed files with 14 additions and 12 deletions

View File

@@ -492,7 +492,7 @@ do_atof_calc:
result = 0.0*s;
}else{
#ifdef INFINITY
result = INFINITY;
result = INFINITY*s;
#else
result = 1e308*1e308*s; /* Infinity */
#endif