Skip to content

Commit 0dcd860

Browse files
nehebpiponazo
authored andcommitted
fix mmap compilation
CI doesn't catch all cases failing. Signed-off-by: Rosen Penev <[email protected]>
1 parent c9bdd6e commit 0dcd860

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/basicio.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ byte* FileIo::mmap(bool isWriteable) {
283283
if (error()) {
284284
throw Error(ErrorCode::kerCallFailed, path(), strError(), "FileIo::mmap");
285285
}
286-
p_->pMappedArea_ = buf.release().first;
286+
p_->pMappedArea_ = buf->first;
287287
p_->isMalloced_ = true;
288288
#endif
289289
return p_->pMappedArea_;

0 commit comments

Comments
 (0)