Skip to content

Commit adf22c1

Browse files
committed
py/mpprint: Remove unreachable check for neg return of mp_format_float.
1 parent 8f6ef8d commit adf22c1

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

py/mpprint.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -354,9 +354,6 @@ int mp_print_float(const mp_print_t *print, mp_float_t f, char fmt, int flags, c
354354
}
355355

356356
int len = mp_format_float(f, buf, sizeof(buf), fmt, prec, sign);
357-
if (len < 0) {
358-
len = 0;
359-
}
360357

361358
char *s = buf;
362359

0 commit comments

Comments
 (0)