Skip to content

Commit 71966b6

Browse files
Alon NofLiyouZhou
authored andcommitted
remove warning: comparison of an unsigned value (#13)
remove compile warning: comparison of an unsigned value is always true
1 parent 3e3b133 commit 71966b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/minimal-printf/mbed_printf_implementation.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ int mbed_minimal_formatted_string(char* buffer, size_t length, const char* forma
436436
/* ensure that function wasn't called with an empty buffer, or with or with
437437
a buffer size that is larger than the maximum 'int' value, or with
438438
a NULL format specifier */
439-
if (format && length >= 0 && length <= INT_MAX)
439+
if (format && length <= INT_MAX)
440440
{
441441
/* Make sure that there's always space for the NULL terminator */
442442
if (length > 0)

0 commit comments

Comments
 (0)