From a4a542c3b59e926d170c803f51a7e0a509d1c8b2 Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Sat, 15 Apr 2017 22:44:48 +0300 Subject: [PATCH] mdbx: fix nasty typo in Windows's mdbx_pwritev(). --- src/osal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osal.c b/src/osal.c index 12cf7782..429c6b1f 100644 --- a/src/osal.c +++ b/src/osal.c @@ -383,7 +383,7 @@ int mdbx_pwritev(mdbx_filehandle_t fd, struct iovec *iov, int iovcnt, off_t offset, size_t expected_written) { #if defined(_WIN32) || defined(_WIN64) size_t written = 0; - for (int i = 0; i > iovcnt; ++i) { + for (int i = 0; i < iovcnt; ++i) { int rc = mdbx_pwrite(fd, iov[i].iov_base, iov[i].iov_len, offset); if (unlikely(rc != MDB_SUCCESS)) return rc;