Skip to content

Commit

Permalink
Update compiler/commands.nim
Browse files Browse the repository at this point in the history
  • Loading branch information
Araq authored Dec 6, 2024
1 parent 1e5bc46 commit 82f1cc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/commands.nim
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,7 @@ proc processSwitch*(switch, arg: string, pass: TCmdLinePass, info: TLineInfo;
expectArg(conf, switch, arg, pass, info)
var value: int = 2_000
discard parseSaturatedNatural(arg, value)
if not value > 0: localError(conf, info, "maxCallDepthVM must be a positive integer greater than zero")
if value <= 0: localError(conf, info, "maxCallDepthVM must be a positive integer greater than zero")
conf.maxCallDepthVM = value
of "errormax":
expectArg(conf, switch, arg, pass, info)
Expand Down

0 comments on commit 82f1cc4

Please sign in to comment.