mirror of
https://github.com/micropython/micropython.git
synced 2026-01-07 12:40:15 +01:00
py/mpprint: Remove unreachable check for neg return of mp_format_float.
This commit is contained in:
@@ -354,9 +354,6 @@ int mp_print_float(const mp_print_t *print, mp_float_t f, char fmt, int flags, c
|
|||||||
}
|
}
|
||||||
|
|
||||||
int len = mp_format_float(f, buf, sizeof(buf), fmt, prec, sign);
|
int len = mp_format_float(f, buf, sizeof(buf), fmt, prec, sign);
|
||||||
if (len < 0) {
|
|
||||||
len = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
char *s = buf;
|
char *s = buf;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user