This commit is contained in:
gabime
2025-05-08 13:45:43 +03:00
parent 37e8a77862
commit d8820dcb44

View File

@@ -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<std::size_t>(ifs.tellg());
}
// source: https://stackoverflow.com/a/2072890/192001