mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-24 16:20:49 +01:00
[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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user