Skip to content
Snippets Groups Projects
Commit 94a587a7 authored by Damien George's avatar Damien George
Browse files

py/formatfloat: Remove unreachable code.

The if-block that this unreachable code is in has a condition "f>=5" so
"fp_isless1(f)" will always fail.
parent 0883a7e7
No related branches found
No related tags found
No related merge requests found
......@@ -388,10 +388,6 @@ int mp_format_float(FPTYPE f, char *buf, size_t buf_size, char fmt, int prec, ch
}
*rs = '1';
}
if (fp_isless1(f) && fmt == 'f') {
// We rounded up to 1.0
prec--;
}
}
// verify that we did not overrun the input buffer so far
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment