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

Remove an unnecessary branch in the sqlite3LogEstToInt() routine.

FossilOrigin-Name: da81d7afeb0566a09a505ba5fce901e991e4a029
This commit is contained in:
drh
2016-04-05 23:39:53 +00:00
parent ed06a131da
commit 40dc357a01
3 changed files with 7 additions and 8 deletions

View File

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