ITS#9961 LMDB: fix MSVC error

This commit is contained in:
Howard Chu 2022-12-15 09:36:58 +00:00
parent f16ef18fc9
commit 54fae7711f

View file

@ -6935,7 +6935,7 @@ current:
* Copy end of page, adjusting alignment so * Copy end of page, adjusting alignment so
* compiler may copy words instead of bytes. * 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), memcpy((size_t *)((char *)np + off),
(size_t *)((char *)omp + off), sz - off); (size_t *)((char *)omp + off), sz - off);
sz = PAGEHDRSZ; sz = PAGEHDRSZ;