mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-29 01:29:35 +08:00
Fix test
This commit is contained in:
@@ -52,7 +52,7 @@ std::size_t get_filesize(const std::string &filename) {
|
|||||||
if (!ifs) {
|
if (!ifs) {
|
||||||
throw std::runtime_error("Failed open file " + filename);
|
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
|
// source: https://stackoverflow.com/a/2072890/192001
|
||||||
|
Reference in New Issue
Block a user