X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=device%2Flib%2Fvprintf.c;h=75a3f84ab23e189704645aa19a9a387bb0b6981d;hb=c7d38a78093639de5b21e7c8bb897d816e28938c;hp=6c277e84af4f2bfa2e425600def93bf1b1f5996e;hpb=8e3f99481c8939c1eebbbb1e26b1bd16de4dcd2a;p=fw%2Fsdcc diff --git a/device/lib/vprintf.c b/device/lib/vprintf.c index 6c277e84..75a3f84a 100644 --- a/device/lib/vprintf.c +++ b/device/lib/vprintf.c @@ -564,7 +564,7 @@ _endasm; /* prepend spaces if needed */ if (!zero_padding && !left_justify) { - while ( width > length+1 ) + while ( width > (unsigned char) (length+1) ) { output_char( ' ' ); width--;