ITS#9961 LMDB: fix MSVC error

This commit is contained in:
Howard Chu 2022-12-15 09:36:58 +00:00
parent b9db2582cb
commit 6264f53975

View 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;