]> 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:45 +0000 (09:38 +0000)
libraries/liblmdb/mdb.c

index 3c1816e37104fa1b591c71662793bc0c24568363..931517133b4d7c227b492dae21f37ec89b5c8f13 100644 (file)
@@ -6935,7 +6935,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;