Skip to content

Commit

Permalink
Fixed uninitialized var
Browse files Browse the repository at this point in the history
  • Loading branch information
grunt-lucas committed Oct 2, 2023
1 parent 23b1e04 commit ea9d646
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cli_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,8 @@ static void parseSubcommandOptions(PtContext &ctx, int argc, char *const *argv)
}
break;
case PRIMARY_ASSIGN_EXPLORE_CUTOFF_VAL:
cutoffFactor = parseIntegralOption<std::size_t>(ctx.err, PRIMARY_ASSIGN_EXPLORE_CUTOFF, optarg);
// FIXME : error if this factor is too large
if (ctx.subcommand == Subcommand::COMPILE_SECONDARY) {
ctx.compilerConfig.primaryExploredNodeCutoff = cutoffFactor * EXPLORATION_CUTOFF_MULTIPLIER;
}
Expand Down

0 comments on commit ea9d646

Please sign in to comment.