From 75845c3dc736b3bf12e4259237587019a07ec92b Mon Sep 17 00:00:00 2001 From: Bogdan Marinescu Date: Thu, 2 Nov 2017 17:02:17 +0000 Subject: [PATCH] Remove references to ssize_t in the code ssize_t doesn't exist at all in armcc. --- features/minimal-printf/mbed_printf_implementation.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/features/minimal-printf/mbed_printf_implementation.c b/features/minimal-printf/mbed_printf_implementation.c index 6d91b84b6f9..6fa3881a99e 100644 --- a/features/minimal-printf/mbed_printf_implementation.c +++ b/features/minimal-printf/mbed_printf_implementation.c @@ -248,7 +248,7 @@ static void mbed_minimal_formatted_string_hexadecimal(char* buffer, size_t lengt bool print_leading_zero = false; /* only continue each loop if buffer can fit at least 2 characters */ - for (ssize_t index = 7; (((size_t)(*result + 2) <= length)) && (index >= 0); index--) + for (int index = 7; (((size_t)(*result + 2) <= length)) && (index >= 0); index--) { /* get most significant byte */ uint8_t output = value >> (8 * index); @@ -605,9 +605,6 @@ int mbed_minimal_formatted_string(char* buffer, size_t length, const char* forma case LENGTH_J: value = (intmax_t) value; break; - case LENGTH_Z: - value = (ssize_t) value; - break; case LENGTH_T: value = (ptrdiff_t) value; break;