From 0a2f2e28b48b464b482ab12d9d6dc5a6c4757688 Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Wed, 27 Jan 2021 19:23:07 +0300 Subject: [PATCH] mdbx: fix minor signed/unsigned comparison warnings. Change-Id: Ice6f9759560d5eda514112e838d57e63207a7559 --- src/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.c b/src/core.c index f5d1a09b..12765538 100644 --- a/src/core.c +++ b/src/core.c @@ -3027,7 +3027,7 @@ static int __must_check_result mdbx_txl_append(MDBX_TXL *ptl, txnid_t id) { /*----------------------------------------------------------------------------*/ static __always_inline size_t dpl2bytes(const ptrdiff_t size) { - assert(size > 2 && size <= MDBX_PGL_LIMIT); + assert(size > 2 && (size_t)size <= MDBX_PGL_LIMIT); size_t bytes = ceil_powerof2(MDBX_ASSUME_MALLOC_OVERHEAD + sizeof(MDBX_dpl) + (size + 2) * sizeof(MDBX_dp), MDBX_PNL_GRANULATE * sizeof(void *) * 2) -