From 8847ce44e0713350a6d3524f62eaeb10ba548bae Mon Sep 17 00:00:00 2001 From: Cory Fields Date: Thu, 2 Mar 2023 20:30:17 +0000 Subject: [PATCH] util: add missing include and fix function signature --- src/util/readwritefile.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/util/readwritefile.cpp b/src/util/readwritefile.cpp index c22e6815e3..cc555adf45 100644 --- a/src/util/readwritefile.cpp +++ b/src/util/readwritefile.cpp @@ -3,6 +3,8 @@ // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. +#include + #include #include @@ -11,7 +13,7 @@ #include #include -std::pair ReadBinaryFile(const fs::path &filename, size_t maxsize=std::numeric_limits::max()) +std::pair ReadBinaryFile(const fs::path &filename, size_t maxsize) { FILE *f = fsbridge::fopen(filename, "rb"); if (f == nullptr)