forked from Imagelibrary/rtems
2001-10-10 Joel Sherrill <joel@OARcorp.com>
* libc/printk.c (printNum): Properly handle a maxwidth of 0 as reported by Nick Hennenfent <NICK.HENNENFENT@ROCHE.COM>.
This commit is contained in:
@@ -44,7 +44,7 @@ printNum(long unsigned int num, int base, int sign, int maxwidth, int lead)
|
||||
if ( (sign == 1) && ((long)num < 0) ) {
|
||||
BSP_output_char('-');
|
||||
num = -num;
|
||||
maxwidth--;
|
||||
if (maxwidth) maxwidth--;
|
||||
}
|
||||
|
||||
count = 0;
|
||||
|
||||
Reference in New Issue
Block a user