]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9961 LMDB: fix MSVC error
authorHoward Chu <hyc@openldap.org>
Thu, 15 Dec 2022 09:36:58 +0000 (09:36 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 15 Dec 2022 09:38:23 +0000 (09:38 +0000)
libraries/liblmdb/mdb.c

index 53732cc33b106f9fa9c137c2e3e3b60c00d1c5a6..ea1a2ea5c973123c0abe83fbb8ac01ee69558dfc 100644 (file)
@@ -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;