* device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
authorbernhardheld <bernhardheld@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 23 Mar 2004 15:12:00 +0000 (15:12 +0000)
committerbernhardheld <bernhardheld@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 23 Mar 2004 15:12:00 +0000 (15:12 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3277 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
device/lib/vprintf.c

index beb18e72dac16fe928201f6ec5e48b873bfe957d..75bf1f8af935b47bb87260e080a72698c9b3c516 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,8 +1,20 @@
+2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
+
+       * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
+
 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
 
        * src/pic/gen.c (genCpl): multi-byte complements were not working.
        * src/regression/Makefile: Regression test was not running.
 
+2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
+
+       * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
+       complement if possible
+       * src/SDCCval.c (valComplement),
+       * src/SDCCicode.c (operandOperation): fixed complement of literal
+       * support/regression/tests/onebyte.c (testComplement): added
+
 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
 
        * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
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--;