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
|
// Optional values
|
||||||
B = C = J = F = 0;
|
B = C = J = F = 0;
|
||||||
for (auto &i : std::array<std::reference_wrapper<unsigned>,4>{B, C, J, F}) {
|
if (f.peek() == ' ') {
|
||||||
if (f.peek() != ' ') break;
|
if (!(f >> B >> C >> J >> F))
|
||||||
if (!(f >> i))
|
|
||||||
log_error("Invalid AIGER header\n");
|
log_error("Invalid AIGER header\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue