Skip to content

Commit d752f7c

Browse files
committed
not needed in original
1 parent 254f812 commit d752f7c

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

quaddtype/numpy_quaddtype/src/casts.cpp

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -360,13 +360,11 @@ quad_to_string_adaptive(Sleef_quad *sleef_val, npy_intp unicode_size_chars)
360360
if (pos_len <= unicode_size_chars) {
361361
return positional_str; // Keep the positional string
362362
}
363-
else {
364-
Py_DECREF(positional_str);
365-
// Use scientific notation with full precision
366-
return Dragon4_Scientific_QuadDType(sleef_val, DigitMode_Unique,
367-
SLEEF_QUAD_DECIMAL_DIG, 0, 1,
368-
TrimMode_LeaveOneZero, 1, 2);
369-
}
363+
Py_DECREF(positional_str);
364+
// Use scientific notation with full precision
365+
return Dragon4_Scientific_QuadDType(sleef_val, DigitMode_Unique,
366+
SLEEF_QUAD_DECIMAL_DIG, 0, 1,
367+
TrimMode_LeaveOneZero, 1, 2);
370368
}
371369

372370
static inline const char *

0 commit comments

Comments
 (0)