Commit e52a9949 authored by Johannes Munk's avatar Johannes Munk Committed by Lukas W

btree mdb_env_set_mapsize 64 bit

parent 5a70c78c
......@@ -930,7 +930,7 @@ int sqlite3BtreeMaxPageCount(Btree *p, int mxPage){
int n;
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;
Markdown is supported
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