diff options
author | drh <drh@noemail.net> | 2016-04-27 02:35:03 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2016-04-27 02:35:03 +0000 |
commit | c6daa01c058378590d0a219d857dfde1acb12866 (patch) | |
tree | 69a3b114a87801e12f85638e15ab527e6325068d /src | |
parent | 15af62acffe41ab144fb7e1a3ab3560bd63ca8bf (diff) | |
download | sqlite-c6daa01c058378590d0a219d857dfde1acb12866.tar.gz sqlite-c6daa01c058378590d0a219d857dfde1acb12866.zip |
Remove still more unnecessary branches from sqlite3AtoF().
FossilOrigin-Name: 3adfe9f3e6ce7cc09fcb570d9b65e830a96cac15
Diffstat (limited to 'src')
-rw-r--r-- | src/util.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/util.c b/src/util.c index 771213be1..c85ae6a19 100644 --- a/src/util.c +++ b/src/util.c @@ -431,9 +431,7 @@ int sqlite3AtoF(const char *z, double *pResult, int length, u8 enc){ } /* skip trailing spaces */ - if( nDigits && eValid ){ - while( z<zEnd && sqlite3Isspace(*z) ) z+=incr; - } + while( z<zEnd && sqlite3Isspace(*z) ) z+=incr; do_atof_calc: /* adjust exponent by d, and update sign */ @@ -449,7 +447,7 @@ do_atof_calc: if( !s ) { /* In the IEEE 754 standard, zero is signed. ** Add the sign if we've seen at least one digit */ - result = (sign<0 && nDigits) ? -(double)0 : (double)0; + result = sign<0 ? -(double)0 : (double)0; } else { /* attempt to reduce exponent */ if( esign>0 ){ |