[wpiutil] MemoryBuffer: Fix zero extending size_t warning on Win32 (#8450)

This commit is contained in:
Peter Johnson
2025-12-05 11:55:28 -07:00
committed by GitHub
parent ded6790bcd
commit 6f86f533e5

View File

@@ -189,7 +189,7 @@ class MemoryBufferMMapFile : public MB {
MappedFileRegion m_mfr;
static uint64_t getLegalMapOffset(uint64_t offset) {
return offset & ~(MappedFileRegion::GetAlignment() - 1);
return offset & ~(static_cast<uint64_t>(MappedFileRegion::GetAlignment()) - 1);
}
static uint64_t getLegalMapSize(uint64_t len, uint64_t offset) {