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:
parent
6cf06c6534
commit
e151daa0fc
@ -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_;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user