Skip to content

Commit

Permalink
Fix silly absw (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
meooow25 authored Dec 9, 2024
1 parent a321996 commit d13c41a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Regex/Internal/Num.hs
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,7 @@ mkSignedIntRange minus plus wordRangeDec (low,high) = case (negR, nonNegR) of
{-# INLINE mkSignedIntRange #-}

absw :: Int -> Word
absw x = if x == minBound
then fromIntegral (abs (x+1) + 1)
else fromIntegral (abs x)
absw = fromIntegral . abs

-------------------
-- Parsing ranges
Expand Down

0 comments on commit d13c41a

Please sign in to comment.