From 31cfce4ca5df125a71c7fe8ff8d7b1f7c6737204 Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Mon, 26 Apr 2021 10:56:18 +0300 Subject: [PATCH] mdbx: fix minor MSVC warnings. Change-Id: I99ab0855334c01796c57f13142127d184ab1291e --- src/core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core.c b/src/core.c index 2c9b0b36..e7c789ad 100644 --- a/src/core.c +++ b/src/core.c @@ -4152,9 +4152,8 @@ static void mdbx_dpage_free(MDBX_env *env, MDBX_page *dp, unsigned npages) { static void mdbx_dlist_free(MDBX_txn *txn) { MDBX_env *env = txn->mt_env; MDBX_dpl *const dl = txn->tw.dirtylist; - const size_t len = dl->length; - for (size_t i = 1; i <= len; i++) { + for (unsigned i = 1; i <= dl->length; i++) { MDBX_page *dp = dl->items[i].ptr; mdbx_dpage_free(env, dp, dpl_npages(dl, i)); }