Skip to content

Commit

Permalink
remove warning: comparison of an unsigned value (ARMmbed#13)
Browse files Browse the repository at this point in the history
remove compile warning: comparison of an unsigned value is always true
  • Loading branch information
Alon Nof authored and LiyouZhou committed Dec 17, 2018
1 parent 5cbf9d1 commit 7a57a3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mbed_printf_implementation.c
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ int mbed_minimal_formatted_string(char* buffer, size_t length, const char* forma
/* ensure that function wasn't called with an empty buffer, or with or with
a buffer size that is larger than the maximum 'int' value, or with
a NULL format specifier */
if (format && length >= 0 && length <= INT_MAX)
if (format && length <= INT_MAX)
{
/* Make sure that there's always space for the NULL terminator */
if (length > 0)
Expand Down

0 comments on commit 7a57a3e

Please sign in to comment.