From 8ff44026c3abbf0c8b2c75b8f653471411dec904 Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Wed, 7 Apr 2021 02:31:52 +0300 Subject: [PATCH] mdbx: fix minor MSVC warning. Change-Id: Ia7ec726b8a516d2115b727960cf7fbc874882cd4 --- src/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.c b/src/core.c index 87535722..c373e034 100644 --- a/src/core.c +++ b/src/core.c @@ -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]),