fix compilation without mmap and non win32

buf was refactored not to be a pointer.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2022-08-08 15:49:30 -07:00
parent 6cf06c6534
commit e151daa0fc

View File

@ -283,7 +283,7 @@ byte* FileIo::mmap(bool isWriteable) {
if (error()) {
throw Error(ErrorCode::kerCallFailed, path(), strError(), "FileIo::mmap");
}
p_->pMappedArea_ = buf->first;
p_->pMappedArea_ = buf.data();
p_->isMalloced_ = true;
#endif
return p_->pMappedArea_;