remove warning: comparison of an unsigned value (#13)

remove compile warning: comparison of an unsigned value is always true
pull/11051/head
Alon Nof 2018-12-17 12:38:42 +02:00 committed by LIYOU ZHOU
parent 3e3b133515
commit 71966b6e5a
1 changed files with 1 additions and 1 deletions

View File

@ -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)