diff options
author | Pauli Virtanen <pav@iki.fi> | 2010-10-06 10:16:46 +0200 |
---|---|---|
committer | Pauli Virtanen <pav@iki.fi> | 2010-10-06 10:16:46 +0200 |
commit | 394bb8548cd8174c81be0876380a08ffb97b99eb (patch) | |
tree | 2ec648f621332504d9bdb279aa2f5f74fd1f7bc9 | |
parent | 1f0c9286b83f4bd2cdcbeea02dc8846147823079 (diff) | |
download | numpy-394bb8548cd8174c81be0876380a08ffb97b99eb.tar.gz |
BUG: core: fix compilation with Solaris 10 / Sun Studio 12.1 (ticket #1626)
-rw-r--r-- | numpy/core/src/umath/loops.c.src | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/core/src/umath/loops.c.src b/numpy/core/src/umath/loops.c.src index e77da0691..850126482 100644 --- a/numpy/core/src/umath/loops.c.src +++ b/numpy/core/src/umath/loops.c.src @@ -1546,9 +1546,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; } } |