From 19584732fb855ee06ce83e192e5752d806a4176f Mon Sep 17 00:00:00 2001 From: Pauli Virtanen Date: Wed, 6 Oct 2010 10:16:46 +0200 Subject: [PATCH] BUG: core: fix compilation with Solaris 10 / Sun Studio 12.1 (ticket #1626) (cherry picked from commit 394bb8548cd8174c81be0876380a08ffb97b99eb) --- numpy/core/src/umath/loops.c.src | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/numpy/core/src/umath/loops.c.src b/numpy/core/src/umath/loops.c.src index b9b5b1d5e795..24a70cc53ec7 100644 --- a/numpy/core/src/umath/loops.c.src +++ b/numpy/core/src/umath/loops.c.src @@ -1383,9 +1383,9 @@ C@TYPE@_sign(char **args, intp *dimensions, intp *steps, void *NPY_UNUSED(func)) UNARY_LOOP { const @type@ in1r = ((@type@ *)ip1)[0]; const @type@ in1i = ((@type@ *)ip1)[1]; - ((@type@ *)op1)[0] = CGT(in1r, in1i, 0, 0) ? 1 : - (CLT(in1r, in1i, 0, 0) ? -1 : - (CEQ(in1r, in1i, 0, 0) ? 0 : NPY_NAN@C@)); + ((@type@ *)op1)[0] = CGT(in1r, in1i, 0.0, 0.0) ? 1 : + (CLT(in1r, in1i, 0.0, 0.0) ? -1 : + (CEQ(in1r, in1i, 0.0, 0.0) ? 0 : NPY_NAN@C@)); ((@type@ *)op1)[1] = 0; } }