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/prepare.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/prepare.c')
-rw-r--r-- | src/prepare.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/prepare.c b/src/prepare.c index c470a54bd..ad07eca45 100644 --- a/src/prepare.c +++ b/src/prepare.c @@ -293,7 +293,7 @@ int sqlite3InitOne(sqlite3 *db, int iDb, char **pzErrMsg, u32 mFlags){ ** indices that the user might have created. */ if( iDb==0 && meta[BTREE_FILE_FORMAT-1]>=4 ){ - db->flags &= ~SQLITE_LegacyFileFmt; + db->flags &= ~(u64)SQLITE_LegacyFileFmt; } /* Read the schema information out of the schema tables |