1
0
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:
drh
2011-04-03 18:19:25 +00:00
parent 4fa7d7c0df
commit dddd779b2b
4 changed files with 21 additions and 21 deletions

View File

@@ -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);