Skip to content

Commit

Permalink
parameter type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mmertama committed Sep 5, 2024
1 parent 7666fe6 commit 15c7832
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gempyrelib/src/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ bool GempyreUtils::is_executable(std::string_view filename) {
}

SSIZE_T GempyreUtils::file_size(std::string_view filename) {
std::ifstream stream(std::string{filename}, std::ios::in | std::ios::binary | std::ios::ate);
std::ifstream stream(std::string{filename}.c_str(), std::ios::in | std::ios::binary | std::ios::ate);
if(!stream.is_open()) {
log(LogLevel::Error, "Cannot open file", qq(filename));
return -1;
Expand Down

0 comments on commit 15c7832

Please sign in to comment.