mirror of https://github.com/YosysHQ/yosys.git
synth: Put in missing bounds check for `-lut`
This commit is contained in:
parent
d5934357f3
commit
d77b792156
|
@ -151,7 +151,7 @@ struct SynthPass : public ScriptPass {
|
|||
flatten = true;
|
||||
continue;
|
||||
}
|
||||
if (args[argidx] == "-lut") {
|
||||
if (args[argidx] == "-lut" && argidx + 1 < args.size()) {
|
||||
lut = atoi(args[++argidx].c_str());
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue