From 5374d06d92f52c3d6b1b58e2a8e0dc730419c2b8 Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Mon, 28 Sep 2020 18:37:38 +0300 Subject: [PATCH] mdbx: fix minor MSVC warning. Change-Id: Ie3c9fa7ba21cd88f7a0c08a1529542ba394fe9c8 --- src/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.c b/src/core.c index b445affa..9d19f183 100644 --- a/src/core.c +++ b/src/core.c @@ -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 && branch_nodemax % 2 == 0); 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, bytes2pgno(env, pagesize + pagesize) == 2); }