Skip to content

Commit

Permalink
added read mode
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelsamenezes committed Jul 1, 2024
1 parent 3166993 commit e6a0056
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bounded-loop-unroller/frontend_action.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<char> begin1(file1);
std::istreambuf_iterator<char> begin2(file2);
Expand Down

0 comments on commit e6a0056

Please sign in to comment.