From 900abdfd859116754902581f9c47029e23ac6fef Mon Sep 17 00:00:00 2001 From: simonpj Date: Thu, 1 Aug 2002 12:50:31 +0000 Subject: [PATCH] [project @ 2002-08-01 12:50:31 by simonpj] Add parens to make precence clear --- GHC/Base.lhs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/GHC/Base.lhs b/GHC/Base.lhs index 9601209..699deaa 100644 --- a/GHC/Base.lhs +++ b/GHC/Base.lhs @@ -669,13 +669,13 @@ data (:*:) a b = a :*: b \begin{code} divInt# :: Int# -> Int# -> Int# x# `divInt#` y# - -- careful NOT to overflow if we do any additional arithmetic + -- Be careful NOT to overflow if we do any additional arithmetic -- on the arguments... the following previous version of this -- code has problems with overflow: -- | (x# ># 0#) && (y# <# 0#) = ((x# -# y#) -# 1#) `quotInt#` y# -- | (x# <# 0#) && (y# ># 0#) = ((x# -# y#) +# 1#) `quotInt#` y# - | (x# ># 0#) && (y# <# 0#) = (x# -# 1#) `quotInt#` y# -# 1# - | (x# <# 0#) && (y# ># 0#) = (x# +# 1#) `quotInt#` y# -# 1# + | (x# ># 0#) && (y# <# 0#) = ((x# -# 1#) `quotInt#` y#) -# 1# + | (x# <# 0#) && (y# ># 0#) = ((x# +# 1#) `quotInt#` y#) -# 1# | otherwise = x# `quotInt#` y# modInt# :: Int# -> Int# -> Int# -- 1.7.10.4