From de64ad0e30d84ecee2f209be99a69be94775b1b2 Mon Sep 17 00:00:00 2001 From: Daniel Murphy Date: Wed, 27 Nov 2013 04:07:46 +1100 Subject: [PATCH] Remove uses of nceg operators from std.math --- std/math.d | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/std/math.d b/std/math.d index 6f0a5e8cc..3b28960df 100644 --- a/std/math.d +++ b/std/math.d @@ -655,7 +655,7 @@ unittest r = -r; t = tan(x); //printf("tan(%Lg) = %Lg, should be %Lg\n", x, t, r); - if (!isIdentical(r, t) && !(r!<>=0 && t!<>=0)) assert(fabs(r-t) <= .0000001); + if (!isIdentical(r, t) && !(r!=r && t!=t)) assert(fabs(r-t) <= .0000001); } // overflow assert(isNaN(tan(real.infinity))); @@ -2895,7 +2895,7 @@ real hypot(real x, real y) @safe pure nothrow real u = fabs(x); real v = fabs(y); - if (u !>= v) // check for NaN as well. + if (!(u >= v)) // check for NaN as well. { v = u; u = fabs(y); @@ -5352,7 +5352,7 @@ in { // both x and y must have the same sign, and must not be NaN. assert(signbit(x) == signbit(y)); - assert(x<>=0 && y<>=0); + assert(x==x && y==y); } body {