mirror of https://github.com/ARMmbed/mbed-os.git
remove warning: comparison of an unsigned value (#13)
remove compile warning: comparison of an unsigned value is always truepull/11051/head
parent
3e3b133515
commit
71966b6e5a
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue