mdbx: fix minor MSVC warning.

Change-Id: Ia7ec726b8a516d2115b727960cf7fbc874882cd4
This commit is contained in:
Leonid Yuriev 2021-04-07 02:31:52 +03:00
parent 43caec46e7
commit 8ff44026c3

View File

@ -17405,7 +17405,7 @@ static int mdbx_page_split(MDBX_cursor *mc, const MDBX_val *const newkey,
for (i = 0; i < mc->mc_top; i++)
mc->mc_ki[i] = mn.mc_ki[i];
} else if (mc->mc_ki[mc->mc_top - 1] == 0) {
for (unsigned i = 2; i <= mc->mc_top; ++i)
for (i = 2; i <= mc->mc_top; ++i)
if (mc->mc_ki[mc->mc_top - i]) {
get_key(
page_node(mc->mc_pg[mc->mc_top - i], mc->mc_ki[mc->mc_top - i]),