diff --git a/mbed_printf_implementation.c b/mbed_printf_implementation.c index 6d91b84b6f9..6fa3881a99e 100644 --- a/mbed_printf_implementation.c +++ b/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;