diff --git a/port/mmap.cc b/port/mmap.cc index 36e8f32617fb..36977f17b9f4 100644 --- a/port/mmap.cc +++ b/port/mmap.cc @@ -43,7 +43,7 @@ MemMapping& MemMapping::operator=(MemMapping&& other) noexcept { return *this; } this->~MemMapping(); - std::memcpy(this, &other, sizeof(*this)); + std::memcpy(static_cast(this), &other, sizeof(*this)); new (&other) MemMapping(); return *this; }