mirror of https://github.com/YosysHQ/yosys.git
fabulous: fix argument check in `-lut` option
Signed-off-by: Leo Moser <leomoser99@gmail.com>
This commit is contained in:
parent
d671de97e9
commit
54c37b395b
|
|
@ -170,7 +170,7 @@ struct SynthPass : public ScriptPass
|
|||
autotop = 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