mirror of https://github.com/YosysHQ/yosys.git
Fix warning
This commit is contained in:
parent
c907899422
commit
1bff09f2ff
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue