From: Howard Chu Date: Thu, 15 Dec 2022 09:36:58 +0000 (+0000) Subject: ITS#9961 LMDB: fix MSVC error X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6264f539752159fa31834b419c441ec90e4fb57c;p=thirdparty%2Fopenldap.git ITS#9961 LMDB: fix MSVC error --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 53732cc33b..ea1a2ea5c9 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -8612,7 +8612,7 @@ current: * Copy end of page, adjusting alignment so * compiler may copy words instead of bytes. */ - off = (PAGEHDRSZ + data->mv_size) & -sizeof(size_t); + off = (PAGEHDRSZ + data->mv_size) & -(int)sizeof(size_t); memcpy((size_t *)((char *)np + off), (size_t *)((char *)omp + off), sz - off); sz = PAGEHDRSZ;