* device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
[fw/sdcc] / device / lib / vprintf.c
index 6c277e84af4f2bfa2e425600def93bf1b1f5996e..75a3f84ab23e189704645aa19a9a387bb0b6981d 100644 (file)
@@ -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--;