diff --git a/ghc/compiler/prelude/PrelRules.lhs b/ghc/compiler/prelude/PrelRules.lhs index 5f2c0df72916a810a4e99674188c281a161065b4..bdf3627bcb0c259b446ad8e4a14e6ea09adf5cba 100644 --- a/ghc/compiler/prelude/PrelRules.lhs +++ b/ghc/compiler/prelude/PrelRules.lhs @@ -226,7 +226,7 @@ floatOp2 op name (MachFloat f1) (MachFloat f2) floatOp2 op name l1 l2 = Nothing floatOp2Z op name (MachFloat f1) (MachFloat f2) - | f1 /= 0 = Just (name, mkFloatVal (f1 `op` f2)) + | f2 /= 0 = Just (name, mkFloatVal (f1 `op` f2)) floatOp2Z op name l1 l2 = Nothing -------------------------- @@ -235,7 +235,7 @@ doubleOp2 op name (MachDouble f1) (MachDouble f2) doubleOp2 op name l1 l2 = Nothing doubleOp2Z op name (MachDouble f1) (MachDouble f2) - | f1 /= 0 = Just (name, mkDoubleVal (f1 `op` f2)) + | f2 /= 0 = Just (name, mkDoubleVal (f1 `op` f2)) doubleOp2Z op name l1 l2 = Nothing