Skip to content

Commit 2360f75

Browse files
committed
Fix typo
1 parent ac85722 commit 2360f75

File tree

1 file changed

+4
-4
lines changed
  • quaddtype/numpy_quaddtype/src

1 file changed

+4
-4
lines changed

quaddtype/numpy_quaddtype/src/ops.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,11 @@ ld_absolute(long double *op)
163163
static inline long double
164164
ld_sign(long double *op)
165165
{
166-
if (x < 0.0) return -1.0;
167-
if (x == 0.0) return 0.0;
168-
if (x > 0.0) return 1.0;
166+
if (*op < 0.0) return -1.0;
167+
if (*op == 0.0) return 0.0;
168+
if (*op > 0.0) return 1.0;
169169
// sign(x=NaN) = x
170-
return x;
170+
return *op;
171171
}
172172

173173
static inline long double

0 commit comments

Comments
 (0)