Skip to content

Commit 254f812

Browse files
committed
rem else
1 parent fc4c7fa commit 254f812

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

quaddtype/numpy_quaddtype/src/casts.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -389,17 +389,17 @@ quad_to_string_adaptive_cstr(Sleef_quad *sleef_val, npy_intp unicode_size_chars)
389389
if (pos_len <= unicode_size_chars) {
390390
return positional_str; // Keep the positional string
391391
}
392-
else {
393-
// Use scientific notation with full precision
394-
const char *scientific_str = Dragon4_Scientific_QuadDType_CStr(sleef_val, DigitMode_Unique,
395-
SLEEF_QUAD_DECIMAL_DIG, 0, 1,
396-
TrimMode_LeaveOneZero, 1, 2);
397-
if (scientific_str == NULL) {
398-
PyErr_SetString(PyExc_RuntimeError, "Float formatting failed");
399-
return NULL;
400-
}
401-
return scientific_str;
392+
393+
// Use scientific notation with full precision
394+
const char *scientific_str = Dragon4_Scientific_QuadDType_CStr(sleef_val, DigitMode_Unique,
395+
SLEEF_QUAD_DECIMAL_DIG, 0, 1,
396+
TrimMode_LeaveOneZero, 1, 2);
397+
if (scientific_str == NULL) {
398+
PyErr_SetString(PyExc_RuntimeError, "Float formatting failed");
399+
return NULL;
402400
}
401+
return scientific_str;
402+
403403
}
404404

405405
template <bool Aligned>

0 commit comments

Comments
 (0)