Skip to content

Commit

Permalink
Build error
Browse files Browse the repository at this point in the history
  • Loading branch information
Dextinfire committed Nov 4, 2024
1 parent 5f4218c commit 5786842
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/io/memorymappedfilestream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ template <AccessMode M>
int64_t MemoryMappedFileStream<M>::Write(void* buffer, int64_t sz, int cnt) {
if constexpr (M == AccessMode::read) {
assert(false);
return 0;
} else {
std::lock_guard<std::shared_mutex> lock(*mutexLock);
sz = std::min(Meta.Size - Position, sz);
Expand Down

0 comments on commit 5786842

Please sign in to comment.