aboutsummaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2016-04-05 23:39:53 +0000
committerdrh <drh@noemail.net>2016-04-05 23:39:53 +0000
commit40dc357a01ae544643b53c58c92fe0393cc47299 (patch)
tree3e4b78d97e0fe89c2579eb0b917a596d48c3000d /src/util.c
parented06a131dac1433711cf8c26fc38269c1ee7125b (diff)
downloadsqlite-40dc357a01ae544643b53c58c92fe0393cc47299.tar.gz
sqlite-40dc357a01ae544643b53c58c92fe0393cc47299.zip
Remove an unnecessary branch in the sqlite3LogEstToInt() routine.
FossilOrigin-Name: da81d7afeb0566a09a505ba5fce901e991e4a029
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c
index 08b0c46a5..d2c6ec8e8 100644
--- a/src/util.c
+++ b/src/util.c
@@ -1448,7 +1448,6 @@ LogEst sqlite3LogEstFromDouble(double x){
*/
u64 sqlite3LogEstToInt(LogEst x){
u64 n;
- if( x<10 ) return 1;
n = x%10;
x /= 10;
if( n>=5 ) n -= 2;