diff options
author | drh <drh@noemail.net> | 2018-12-06 17:06:02 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2018-12-06 17:06:02 +0000 |
commit | d5b44d60c7c79ff828e790a6fe31c80cdf10e47c (patch) | |
tree | 072a9a903ada8f1f1d6dc1cc7150c6af9aca2cdd /src/vdbe.c | |
parent | 70d5dfba687ac41bf79d30198f7dd3d58cb6645e (diff) | |
download | sqlite-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/vdbe.c')
-rw-r--r-- | src/vdbe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vdbe.c b/src/vdbe.c index 14f3e1bd3..2803330b3 100644 --- a/src/vdbe.c +++ b/src/vdbe.c @@ -7086,7 +7086,7 @@ case OP_VRename: { rc = sqlite3VdbeChangeEncoding(pName, SQLITE_UTF8); if( rc ) goto abort_due_to_error; rc = pVtab->pModule->xRename(pVtab, pName->z); - if( isLegacy==0 ) db->flags &= ~SQLITE_LegacyAlter; + if( isLegacy==0 ) db->flags &= ~(u64)SQLITE_LegacyAlter; sqlite3VtabImportErrmsg(p, pVtab); p->expired = 0; if( rc ) goto abort_due_to_error; |