aboutsummaryrefslogtreecommitdiff
path: root/src/pragma.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/pragma.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/pragma.c')
-rw-r--r--src/pragma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pragma.c b/src/pragma.c
index ada652cf1..2f27d1100 100644
--- a/src/pragma.c
+++ b/src/pragma.c
@@ -816,7 +816,7 @@ void sqlite3Pragma(
if( sqlite3GetBoolean(zRight, size!=0) ){
db->flags |= SQLITE_CacheSpill;
}else{
- db->flags &= ~SQLITE_CacheSpill;
+ db->flags &= ~(u64)SQLITE_CacheSpill;
}
setAllPagerFlags(db);
}