diff --git a/src/core.c b/src/core.c index 99c83944..2534c014 100644 --- a/src/core.c +++ b/src/core.c @@ -9038,7 +9038,7 @@ static int mdbx_flush_iov(MDBX_txn *const txn, struct iovec *iov, mdbx_assert(env, iov_items > 0); int rc; if (likely(iov_items == 1)) { - mdbx_assert(env, iov->iov_len == iov_bytes); + mdbx_assert(env, iov_bytes == (size_t)iov->iov_len); rc = mdbx_pwrite(env->me_lazy_fd, iov->iov_base, iov_bytes, iov_off); } else { rc = mdbx_pwritev(env->me_lazy_fd, iov, iov_items, iov_off, iov_bytes);