mirror of
https://github.com/isar/libmdbx.git
synced 2025-08-21 20:29:29 +08:00
mdbx: fix minor signed/unsigned comparison warnings.
Change-Id: Ice6f9759560d5eda514112e838d57e63207a7559
This commit is contained in:
@@ -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) -
|
||||
|
Reference in New Issue
Block a user