mdbx: fix minor MSVC warnings.

Change-Id: I99ab0855334c01796c57f13142127d184ab1291e
This commit is contained in:
Leonid Yuriev 2021-04-26 10:56:18 +03:00
parent 66e5078e28
commit 31cfce4ca5

View File

@ -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));
}