diff --git a/tests/utils.cpp b/tests/utils.cpp index 4da1c0ab..405b5e5a 100644 --- a/tests/utils.cpp +++ b/tests/utils.cpp @@ -52,7 +52,7 @@ std::size_t get_filesize(const std::string &filename) { if (!ifs) { throw std::runtime_error("Failed open file " + filename); } - return ifs.tellg(); + return static_cast(ifs.tellg()); } // source: https://stackoverflow.com/a/2072890/192001