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

Remove an unreachable branch in the ascii-to-floating-point conversion that

was added by [e989a37ff9d5b52e].

FossilOrigin-Name: c4347e4400e96f932ac12f8f22484a2ebce2a578d1b2181977954c432f117bfd
This commit is contained in:
drh
2023-08-02 13:45:16 +00:00
parent b1dcebfea3
commit d3229ce23e
3 changed files with 8 additions and 10 deletions

View File

@@ -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;
}