3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-06 17:44:09 +00:00

synth: Put in missing bounds check for -lut

This commit is contained in:
Martin Povišer 2024-02-22 17:22:56 +01:00
parent d5934357f3
commit d77b792156

View file

@ -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;
}