fabulous: fix argument check in `-carry` option

Signed-off-by: Leo Moser <leomoser99@gmail.com>
This commit is contained in:
Leo Moser 2026-06-24 14:24:18 +02:00
parent 54c37b395b
commit 30640c71e2
1 changed files with 1 additions and 1 deletions

View File

@ -218,7 +218,7 @@ struct SynthPass : public ScriptPass
complexdff = true;
continue;
}
if (args[argidx] == "-carry") {
if (args[argidx] == "-carry" && argidx+1 < args.size()) {
carry_mode = args[++argidx];
if (carry_mode != "none" && carry_mode != "ha")
log_cmd_error("Unsupported carry style: %s\n", carry_mode);