From 518c995f38e73fe953a2392c5500d0b1bcca8c3e Mon Sep 17 00:00:00 2001 From: zhupengfei Date: Sat, 20 Jun 2020 22:37:01 +0800 Subject: [PATCH] Fix std::min --- src/core/inner_fat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/inner_fat.cpp b/src/core/inner_fat.cpp index 311e5da..72d0b9e 100644 --- a/src/core/inner_fat.cpp +++ b/src/core/inner_fat.cpp @@ -198,7 +198,7 @@ bool SDSavegame::ExtractFile(const std::string& path, std::size_t index) const { } const std::size_t size = fs_info.data_region_block_size * (last_block - block + 1); - const std::size_t to_write = std::min(file_size, size); + const std::size_t to_write = std::min(file_size, size); if (data_region.size() < fs_info.data_region_block_size * block + to_write) { LOG_ERROR(Core, "Out of bound block: {} to_write: {}", block, to_write);