summaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorIan Lynagh <ian@well-typed.com>2013-05-19 17:54:30 +0100
committerIan Lynagh <ian@well-typed.com>2013-05-19 17:54:30 +0100
commit06bc377d33bd4bed8f0fe7a769c34cf7c6e0d643 (patch)
tree8b8103f9f20773c9e9e4850cf316904d71bb81fc /libraries
parent52719ad07501f791ae21518cd092fd10c30f54bf (diff)
downloadhaskell-06bc377d33bd4bed8f0fe7a769c34cf7c6e0d643.tar.gz
More build fixes
Diffstat (limited to 'libraries')
-rw-r--r--libraries/integer-simple/GHC/Integer/Logarithms/Internals.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/libraries/integer-simple/GHC/Integer/Logarithms/Internals.hs b/libraries/integer-simple/GHC/Integer/Logarithms/Internals.hs
index 529062aa6d..3e3fbb1ee5 100644
--- a/libraries/integer-simple/GHC/Integer/Logarithms/Internals.hs
+++ b/libraries/integer-simple/GHC/Integer/Logarithms/Internals.hs
@@ -131,9 +131,9 @@ integerLog2IsPowerOf2# _ = (# negateInt# 1#, 1# #)
-- This function should probably be improved.
roundingMode# :: Integer -> Int# -> Int#
roundingMode# m h =
- case smallInteger 1# `shiftLInteger` h of
+ case oneInteger `shiftLInteger` h of
c -> case m `andInteger`
- ((c `plusInteger` c) `minusInteger` smallInteger 1#) of
+ ((c `plusInteger` c) `minusInteger` oneInteger) of
r ->
if c `ltInteger` r
then 2#