From 88910e4e79da5c3193c7dcd93b0c7dfc495174a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Mon, 19 Aug 2019 17:14:40 +0200 Subject: [PATCH] [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) --- poincare/src/print_float.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/poincare/src/print_float.cpp b/poincare/src/print_float.cpp index df18a4901..c666b4588 100644 --- a/poincare/src/print_float.cpp +++ b/poincare/src/print_float.cpp @@ -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; }