Skip to content

Commit

Permalink
Merge pull request ARMmbed#7 from ARMmbed/remove_ssize_t
Browse files Browse the repository at this point in the history
Remove references to ssize_t in the code
  • Loading branch information
Marcus Chang authored Nov 2, 2017
2 parents 5453f9b + 24920d2 commit d95f973
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions mbed_printf_implementation.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit d95f973

Please sign in to comment.