Skip to content

Commit

Permalink
STY+BUG: fix unused and unitialized variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
cournape committed Dec 14, 2009
1 parent 67be054 commit c26b303
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions numpy/core/src/npymath/ieee754.c.src
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ double _next(double x, int p)
{
volatile double t;
npy_int32 hx, hy, ix;
npy_uint32 lx, ly;
npy_uint32 lx;

EXTRACT_WORDS(hx, lx, x);
ix = hx & 0x7fffffff; /* |x| */
Expand Down Expand Up @@ -97,9 +97,9 @@ float _nextf(float x, int p)
return x;
if (ix == 0) { /* x == 0 */
if (p >= 0) {
SET_FLOAT_WORD(x, (0x0) | 1); /* return +-minsubnormal */
SET_FLOAT_WORD(x, 0x0 | 1); /* return +minsubnormal */
} else {
SET_FLOAT_WORD(x, (hy & 0x80000000) | 1); /* return +-minsubnormal */
SET_FLOAT_WORD(x, 0x80000000 | 1); /* return -minsubnormal */
}
t = x * x;
if (t == x)
Expand Down

0 comments on commit c26b303

Please sign in to comment.