mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-14 00:22:38 +03:00
Make sure that the constant 1 is cast to yDbType before shifting to create
an attached database mask. This check-in is a follow-up and fix to the [7aaf8772274422] change that increases the maximum number of attached databases from 30 to 62. FossilOrigin-Name: e2a09ea73c76a0bec1e09d1fc11092517e3ebdf9
This commit is contained in:
@@ -954,7 +954,7 @@ void sqlite3VdbeUsesBtree(Vdbe *p, int i){
|
||||
yDbMask mask;
|
||||
assert( i>=0 && i<p->db->nDb && i<sizeof(yDbMask)*8 );
|
||||
assert( i<(int)sizeof(p->btreeMask)*8 );
|
||||
mask = ((u32)1)<<i;
|
||||
mask = ((yDbMask)1)<<i;
|
||||
if( (p->btreeMask & mask)==0 ){
|
||||
p->btreeMask |= mask;
|
||||
sqlite3BtreeMutexArrayInsert(&p->aMutex, p->db->aDb[i].pBt);
|
||||
|
||||
Reference in New Issue
Block a user