From 578684248916bff9ea49b9ddbe5e8fa9445264b6 Mon Sep 17 00:00:00 2001 From: Dextinfire <> Date: Mon, 4 Nov 2024 06:04:41 +0000 Subject: [PATCH] Build error --- src/io/memorymappedfilestream.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/io/memorymappedfilestream.cpp b/src/io/memorymappedfilestream.cpp index 5e19c4ea..02fb4f3d 100644 --- a/src/io/memorymappedfilestream.cpp +++ b/src/io/memorymappedfilestream.cpp @@ -87,6 +87,7 @@ template int64_t MemoryMappedFileStream::Write(void* buffer, int64_t sz, int cnt) { if constexpr (M == AccessMode::read) { assert(false); + return 0; } else { std::lock_guard lock(*mutexLock); sz = std::min(Meta.Size - Position, sz);