From: Ben Pfaff Date: Thu, 2 Dec 2004 00:39:30 +0000 (+0000) Subject: Remove redundant test. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17485ef13014e4a63f5824cbbc0cb6740d4d6ed0;p=pintos-anon Remove redundant test. --- diff --git a/src/lib/stdio.c b/src/lib/stdio.c index 4b0ba19..bae257f 100644 --- a/src/lib/stdio.c +++ b/src/lib/stdio.c @@ -492,8 +492,6 @@ format_integer (uintmax_t value, bool negative, const struct integer_base *b, If requested precision is 0, then a value of zero is rendered as a null string, otherwise as "0". */ precision = c->precision < 0 ? 1 : c->precision; - if (precision < 0) - precision = 1; while (cp - buf < precision && cp - buf < (int) sizeof buf - 8) *cp++ = '0';