fix mmap compilation

CI doesn't catch all cases failing.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2022-04-23 15:22:32 -07:00 committed by Luis Díaz Más
parent c9bdd6ed94
commit 0dcd8605c9

View File

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