mdbx: fix minor MSVC warning.

Change-Id: Ie3c9fa7ba21cd88f7a0c08a1529542ba394fe9c8
This commit is contained in:
Leonid Yuriev 2020-09-28 18:37:38 +03:00
parent b13e9f01fc
commit 5374d06d92

View File

@ -9030,7 +9030,7 @@ static void __cold mdbx_setup_pagesize(MDBX_env *env, const size_t pagesize) {
mdbx_ensure(env, branch_nodemax > 42 && branch_nodemax < (int)UINT16_MAX && mdbx_ensure(env, branch_nodemax > 42 && branch_nodemax < (int)UINT16_MAX &&
branch_nodemax % 2 == 0); branch_nodemax % 2 == 0);
env->me_branch_nodemax = (unsigned)branch_nodemax; env->me_branch_nodemax = (unsigned)branch_nodemax;
env->me_psize2log = log2n(pagesize); env->me_psize2log = (uint8_t)log2n(pagesize);
mdbx_assert(env, pgno2bytes(env, 1) == pagesize); mdbx_assert(env, pgno2bytes(env, 1) == pagesize);
mdbx_assert(env, bytes2pgno(env, pagesize + pagesize) == 2); mdbx_assert(env, bytes2pgno(env, pagesize + pagesize) == 2);
} }