Remove references to ssize_t in the code

ssize_t doesn't exist at all in armcc.
pull/11051/head
Bogdan Marinescu 2017-11-02 17:02:17 +00:00
parent d805e84a98
commit 75845c3dc7
1 changed files with 1 additions and 4 deletions

View File

@ -248,7 +248,7 @@ static void mbed_minimal_formatted_string_hexadecimal(char* buffer, size_t lengt
bool print_leading_zero = false; bool print_leading_zero = false;
/* only continue each loop if buffer can fit at least 2 characters */ /* 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 */ /* get most significant byte */
uint8_t output = value >> (8 * index); 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: case LENGTH_J:
value = (intmax_t) value; value = (intmax_t) value;
break; break;
case LENGTH_Z:
value = (ssize_t) value;
break;
case LENGTH_T: case LENGTH_T:
value = (ptrdiff_t) value; value = (ptrdiff_t) value;
break; break;