summaryrefslogtreecommitdiff
path: root/www/seamonkey/patches/patch-cj
blob: 88962c0d5a214b0c97c93026e06e734bdf6ce167 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
$NetBSD: patch-cj,v 1.1.1.1 2006/03/30 19:15:51 ghen Exp $

--- extensions/transformiix/source/xpath/MultiplicativeExpr.cpp.orig	2004-06-17 02:12:43.000000000 +0200
+++ extensions/transformiix/source/xpath/MultiplicativeExpr.cpp
@@ -79,22 +79,22 @@ MultiplicativeExpr::evaluate(txIEvalCont
 #if defined(XP_WIN)
                 /* XXX MSVC miscompiles such that (NaN == 0) */
                 if (Double::isNaN(rightDbl))
-                    result = Double::NaN;
+                    result = Double::NaN();
                 else
 #endif
                 if (leftDbl == 0 || Double::isNaN(leftDbl))
-                    result = Double::NaN;
+                    result = Double::NaN();
                 else if (Double::isNeg(leftDbl) ^ Double::isNeg(rightDbl))
-                    result = Double::NEGATIVE_INFINITY;
+                    result = Double::NegativeInfinity();
                 else
-                    result = Double::POSITIVE_INFINITY;
+                    result = Double::PositiveInfinity();
             }
             else
                 result = leftDbl / rightDbl;
             break;
         case MODULUS:
             if (rightDbl == 0) {
-                result = Double::NaN;
+                result = Double::NaN();
             }
             else {
 #if defined(XP_WIN)