summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSylvain Henry <sylvain@haskus.fr>2020-06-19 11:32:29 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-06-23 22:50:49 -0400
commitb5768cce0214e20937f8e1d41ef1d9b5613b02ae (patch)
treeb82509fb55e6aae73547405e20d91c268538d93c
parent625a7f5465d51d054c6930772412bad7d87189c5 (diff)
downloadhaskell-b5768cce0214e20937f8e1d41ef1d9b5613b02ae.tar.gz
Don't use timesInt2# with GHC < 8.11 (fix #18358)
-rw-r--r--libraries/ghc-bignum/src/GHC/Num/Integer.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/libraries/ghc-bignum/src/GHC/Num/Integer.hs b/libraries/ghc-bignum/src/GHC/Num/Integer.hs
index b4f6ee0c54..e9e38c9afd 100644
--- a/libraries/ghc-bignum/src/GHC/Num/Integer.hs
+++ b/libraries/ghc-bignum/src/GHC/Num/Integer.hs
@@ -407,7 +407,7 @@ integerMul x (IS 1#) = x
integerMul (IS 1#) y = y
integerMul x (IS -1#) = integerNegate x
integerMul (IS -1#) y = integerNegate y
-#if __GLASGOW_HASKELL__ < 809
+#if __GLASGOW_HASKELL__ < 811
integerMul (IS x) (IS y) = case mulIntMayOflo# x y of
0# -> IS (x *# y)
_ -> case (# isTrue# (x >=# 0#), isTrue# (y >=# 0#) #) of