Skip to content
Snippets Groups Projects
Commit bc8de7cd authored by Gerardo Tauriello's avatar Gerardo Tauriello
Browse files

SCHWED-3473: streams need explicit conversion to bool.

parent 9243b6a7
No related branches found
Tags PYTHON3-v1.0.0
No related merge requests found
......@@ -37,8 +37,8 @@ bool compare_files(const String& test, const String& gold_standard)
}
String test_line, gold_line;
while (true) {
bool test_read = std::getline(test_stream, test_line);
bool gold_read = std::getline(gold_stream, gold_line);
bool test_read = static_cast<bool>(std::getline(test_stream, test_line));
bool gold_read = static_cast<bool>(std::getline(gold_stream, gold_line));
if (!test_read && !gold_read) {
// nothing to read anymore in any of the files
return true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment