diff --git a/lib/vsprintf.c b/lib/vsprintf.c index 2f003cfe340e..25b8f4f040c0 100644 --- a/lib/vsprintf.c +++ b/lib/vsprintf.c @@ -598,7 +598,7 @@ static char *string_nocheck(char *buf, char *end, const char *s, struct printf_spec spec) { int len = 0; - size_t lim = spec.precision; + int lim = spec.precision; while (lim--) { char c = *s++;