[poincare] PrintFloat: remove old assertion

The assertion was true when we used a temporary buffer big enough to
hold longest floats to print inside (before copying its -maybe
truncated- content in the final buffer)
This commit is contained in:
Émilie Feral
2019-08-19 17:14:40 +02:00
parent af31ba6137
commit 88910e4e79

View File

@@ -342,7 +342,6 @@ int PrintFloat::ConvertFloatToTextPrivate(T f, char * buffer, int bufferSize, in
int numberOfCharsForMantissaWithSign = numberOfCharsForMantissaWithoutSign + (f >= 0 ? 0 : 1);
if (numberOfCharsForMantissaWithSign > bufferSize - 1) {
// Exception 2: we will overflow the buffer
assert(mode == Preferences::PrintFloatMode::Decimal);
return bufferSize + 1;
}