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.
This commit is contained in:
parent
0883a7e72f
commit
94a587a750
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user