aboutsummaryrefslogtreecommitdiff
path: root/src/btree.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2018-12-06 17:06:02 +0000
committerdrh <drh@noemail.net>2018-12-06 17:06:02 +0000
commitd5b44d60c7c79ff828e790a6fe31c80cdf10e47c (patch)
tree072a9a903ada8f1f1d6dc1cc7150c6af9aca2cdd /src/btree.c
parent70d5dfba687ac41bf79d30198f7dd3d58cb6645e (diff)
downloadsqlite-d5b44d60c7c79ff828e790a6fe31c80cdf10e47c.tar.gz
sqlite-d5b44d60c7c79ff828e790a6fe31c80cdf10e47c.zip
When masking bits off of sqlite3.flags, make sure the mask is 64 bits
in size so as not to accidentally mask of high-order bits. FossilOrigin-Name: 53d3b169d8e1892163526caff2c843302c92e280fdeff6831e23a9bb15b82be3
Diffstat (limited to 'src/btree.c')
-rw-r--r--src/btree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/btree.c b/src/btree.c
index 137500eed..9046a72d3 100644
--- a/src/btree.c
+++ b/src/btree.c
@@ -9856,7 +9856,7 @@ char *sqlite3BtreeIntegrityCheck(
}
#endif
testcase( pBt->db->flags & SQLITE_CellSizeCk );
- pBt->db->flags &= ~SQLITE_CellSizeCk;
+ pBt->db->flags &= ~(u64)SQLITE_CellSizeCk;
for(i=0; (int)i<nRoot && sCheck.mxErr; i++){
i64 notUsed;
if( aRoot[i]==0 ) continue;