diff options
author | drh <> | 2023-08-02 13:45:16 +0000 |
---|---|---|
committer | drh <> | 2023-08-02 13:45:16 +0000 |
commit | d3229ce23e08d28c7b9b917e3bce2209945f70d2 (patch) | |
tree | 6a8517c4895d906e090b3c758bf1c0fff5395142 /src/util.c | |
parent | b1dcebfea397d777fc7cd35fe809b0911547f5ef (diff) | |
download | sqlite-d3229ce23e08d28c7b9b917e3bce2209945f70d2.tar.gz sqlite-d3229ce23e08d28c7b9b917e3bce2209945f70d2.zip |
Remove an unreachable branch in the ascii-to-floating-point conversion that
was added by [e989a37ff9d5b52e].
FossilOrigin-Name: c4347e4400e96f932ac12f8f22484a2ebce2a578d1b2181977954c432f117bfd
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/util.c b/src/util.c index 002a5ef47..25fd6ff59 100644 --- a/src/util.c +++ b/src/util.c @@ -591,10 +591,9 @@ do_atof_calc: while( e<=-10 ){ e+=10; r *= 1.0e-10L; } while( e<=-1 ){ e+=1; r *= 1.0e-01L; } } + assert( r>=0.0 ); if( r>+1.7976931348623157081452742373e+308L ){ *pResult = +INFINITY; - }else if( r<-1.7976931348623157081452742373e+308L ){ - *pResult = -INFINITY; }else{ *pResult = (double)r; } |