aboutsummaryrefslogtreecommitdiff
path: root/tool/logest.c
diff options
context:
space:
mode:
authormistachkin <mistachkin@noemail.net>2021-12-31 18:26:50 +0000
committermistachkin <mistachkin@noemail.net>2021-12-31 18:26:50 +0000
commit2b5fbb2836f1674ddcc493e149eb992ef04fb92d (patch)
tree6d9ee6cae749427f321fe7ec7c49925c50cbccd0 /tool/logest.c
parent16118265ca18fc6ea57355c235802f0b65d98102 (diff)
downloadsqlite-2b5fbb2836f1674ddcc493e149eb992ef04fb92d.tar.gz
sqlite-2b5fbb2836f1674ddcc493e149eb992ef04fb92d.zip
Fix harmless compiler warnings seen with MSVC.
FossilOrigin-Name: a9bfb621091b6d92d1caeb69134d3809d9e0b43fe764608c5995db277ac785be
Diffstat (limited to 'tool/logest.c')
-rw-r--r--tool/logest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/logest.c b/tool/logest.c
index 580a3a6f9..d916b43d3 100644
--- a/tool/logest.c
+++ b/tool/logest.c
@@ -75,7 +75,7 @@ static sqlite3_uint64 logEstToInt(LogEst x){
x /= 10;
if( n>=5 ) n -= 2;
else if( n>=1 ) n -= 1;
- if( x>60 ) return ((sqlite3_uint64)0xffffffff)<<32 + 0xffffffff;
+ if( x>60 ) return (((sqlite3_uint64)0xffffffff)<<32)+(sqlite3_uint64)0xffffffff;
if( x>=3 ) return (n+8)<<(x-3);
return (n+8)>>(3-x);
}