diff --git a/src/bounded-loop-unroller/frontend_action.cpp b/src/bounded-loop-unroller/frontend_action.cpp index e973230..fbbaa41 100644 --- a/src/bounded-loop-unroller/frontend_action.cpp +++ b/src/bounded-loop-unroller/frontend_action.cpp @@ -22,8 +22,8 @@ namespace { bool compare_files(const std::string_view& filename1, const std::string_view& filename2) { - std::ifstream file1(filename1); - std::ifstream file2(filename2); + std::ifstream file1(filename1, std::ios::in); + std::ifstream file2(filename2, std::ios::in); std::istreambuf_iterator begin1(file1); std::istreambuf_iterator begin2(file2);