Commit e52a9949 authored by ghost-83990-987689's avatar ghost-83990-987689 Committed by Lukas W
Browse files

btree mdb_env_set_mapsize 64 bit

parent 5a70c78c
......@@ -930,7 +930,7 @@ int sqlite3BtreeMaxPageCount(Btree *p, int mxPage){
int n;
LOG("done",0);
if (mxPage > 0)
mdb_env_set_mapsize(p->pBt->env, mxPage * p->pBt->env->me_psize);
mdb_env_set_mapsize(p->pBt->env, (size_t)mxPage * (size_t)p->pBt->env->me_psize);
return p->pBt->env->me_maxpg;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment