aboutsummaryrefslogtreecommitdiff
path: root/src/vdbeaux.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/vdbeaux.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/vdbeaux.c')
-rw-r--r--src/vdbeaux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vdbeaux.c b/src/vdbeaux.c
index 0ed9e81d9..40a63319d 100644
--- a/src/vdbeaux.c
+++ b/src/vdbeaux.c
@@ -2855,7 +2855,7 @@ int sqlite3VdbeHalt(Vdbe *p){
}else{
db->nDeferredCons = 0;
db->nDeferredImmCons = 0;
- db->flags &= ~SQLITE_DeferFKs;
+ db->flags &= ~(u64)SQLITE_DeferFKs;
sqlite3CommitInternalChanges(db);
}
}else{