From: bernhardheld Date: Tue, 23 Mar 2004 15:12:00 +0000 (+0000) Subject: * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;ds=sidebyside;h=c7d38a78093639de5b21e7c8bb897d816e28938c;p=fw%2Fsdcc * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101 git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3277 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/ChangeLog b/ChangeLog index beb18e72..75bf1f8a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,8 +1,20 @@ +2004-03-23 Bernhard Held + + * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101 + 2004-03-23 Scott Dattalo * src/pic/gen.c (genCpl): multi-byte complements were not working. * src/regression/Makefile: Regression test was not running. +2004-03-23 Bernhard Held + + * 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 * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can 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--;