Skip to content

Commit

Permalink
Merged pull request patperry#1 from bjornbm/master.
Browse files Browse the repository at this point in the history
For your pleasure!
  • Loading branch information
patperry committed Apr 28, 2011
2 parents e5d9e58 + 7e6675a commit 029082f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Data/AEq.hs
Expand Up @@ -74,7 +74,7 @@ class Eq a => AEq a where
approxEqIEEE :: (IEEE a) => a -> a -> Bool
approxEqIEEE x y =
( sameSignificandBits x y >= d
|| (x < epsilon && y < epsilon)
|| (abs x < epsilon && abs y < epsilon)
|| (isNaN x && isNaN y)
)
where
Expand Down Expand Up @@ -585,4 +585,4 @@ instance (AEq a, AEq b, AEq c, AEq d, AEq e, AEq f, AEq g, AEq h, AEq i, AEq j,
&& ((~==) n1 n2)
&& ((~==) o1 o2)
)
{-# INLINE (~==) #-}
{-# INLINE (~==) #-}

0 comments on commit 029082f

Please sign in to comment.