Skip to content

Commit 43f0c14

Browse files
committed
Code style violation corrected
1 parent b99584d commit 43f0c14

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

platform/source/minimal-printf/mbed_printf_implementation.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -287,17 +287,15 @@ static void mbed_minimal_formatted_string_double(char *buffer, size_t length, in
287287
if (value < 0) {
288288
/* The part after the dot does not have a sign, so negate the value before rounding */
289289
decimal = -decimal_double + 0.5;
290-
if (decimal >= precision)
291-
{
290+
if (decimal >= precision) {
292291
/* Rounding carries over to value's integer part (e.g. -1.95 with dec_precision=1 -> -2.0) */
293292
integer--;
294293
decimal = 0;
295294
}
296295
} else {
297296
/* Round the value */
298297
decimal = decimal_double + 0.5;
299-
if (decimal >= precision)
300-
{
298+
if (decimal >= precision) {
301299
/* Rounding carries over to value's integer part (e.g. 1.95 with dec_precision=1 -> 2.0) */
302300
integer++;
303301
decimal = 0;

0 commit comments

Comments
 (0)