Fix warning

This commit is contained in:
Eddie Hung 2019-05-21 16:26:20 -07:00
parent c907899422
commit 1bff09f2ff
1 changed files with 2 additions and 3 deletions

View File

@ -55,9 +55,8 @@ void AigerReader::parse_aiger()
// Optional values
B = C = J = F = 0;
for (auto &i : std::array<std::reference_wrapper<unsigned>,4>{B, C, J, F}) {
if (f.peek() != ' ') break;
if (!(f >> i))
if (f.peek() == ' ') {
if (!(f >> B >> C >> J >> F))
log_error("Invalid AIGER header\n");
}