summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-06-30 12:10:50 +1000
committerDamien George <damien.p.george@gmail.com>2017-06-30 12:10:50 +1000
commitadf22c19aee53222b116928581b4d4a009d3af55 (patch)
tree1f6893a77edbb929397c687ae7b8be2ae1d316b8
parent8f6ef8de4876442b1b4a0cdee08ec9d205a8921a (diff)
py/mpprint: Remove unreachable check for neg return of mp_format_float.
-rw-r--r--py/mpprint.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/py/mpprint.c b/py/mpprint.c
index 4bc45fef4..0afd8ca3b 100644
--- a/py/mpprint.c
+++ b/py/mpprint.c
@@ -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);
- if (len < 0) {
- len = 0;
- }
char *s = buf;