projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
[fw/sdcc]
/
device
/
lib
/
vprintf.c
diff --git
a/device/lib/vprintf.c
b/device/lib/vprintf.c
index 6c277e84af4f2bfa2e425600def93bf1b1f5996e..75a3f84ab23e189704645aa19a9a387bb0b6981d 100644
(file)
--- 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--;