Skip to content

Commit

Permalink
Fix maxLevel comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
jgotoh committed Jan 7, 2025
1 parent 3af1299 commit 05210a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cabal/src/Distribution/Simple/Compiler.hs
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ intToOptimisationLevel i
++ show maxLevel
where
minLevel = fromEnum (minBound :: OptimisationLevel)
maxLevel = i <= fromEnum (maxBound :: OptimisationLevel)
maxLevel = fromEnum (maxBound :: OptimisationLevel)

-- ------------------------------------------------------------

Expand Down

0 comments on commit 05210a4

Please sign in to comment.