Skip to content

Commit

Permalink
BUG: core: fix compilation with Solaris 10 / Sun Studio 12.1 (ticket #…
Browse files Browse the repository at this point in the history
…1626)

(cherry picked from commit 394bb85)
  • Loading branch information
pv committed Oct 6, 2010
1 parent b88ad5d commit 1958473
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions numpy/core/src/umath/loops.c.src
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 1958473

Please sign in to comment.