Minor style fix
This commit is contained in:
parent
18549e8120
commit
1f83c92da0
|
@ -358,7 +358,10 @@ error_t vbprintf(Buffer_t *buf, const char *fmt, va_list ap)
|
||||||
|
|
||||||
// Adjust width
|
// Adjust width
|
||||||
if (sgn && (plus || space)) width--;
|
if (sgn && (plus || space)) width--;
|
||||||
else if (hash) width -= (base==8 ? 1 : ((base==2||base==16) ? 2 : 0));
|
else if (hash) {
|
||||||
|
width -= (base == 8 ? 1 :
|
||||||
|
((base == 2 || base == 16) ? 2 : 0));
|
||||||
|
}
|
||||||
|
|
||||||
// When padding with spaces, we pad before +/-'s etc
|
// When padding with spaces, we pad before +/-'s etc
|
||||||
if (!minus && !zero && width > len)
|
if (!minus && !zero && width > len)
|
||||||
|
@ -375,9 +378,7 @@ error_t vbprintf(Buffer_t *buf, const char *fmt, va_list ap)
|
||||||
if (zero && width > len)
|
if (zero && width > len)
|
||||||
bdopadding(buf, width, len, '0');
|
bdopadding(buf, width, len, '0');
|
||||||
|
|
||||||
//
|
|
||||||
// Output the actual number
|
// Output the actual number
|
||||||
//
|
|
||||||
for (; !rc && *s ; s++) {
|
for (; !rc && *s ; s++) {
|
||||||
rc = bputc(buf, (uchar)*s);
|
rc = bputc(buf, (uchar)*s);
|
||||||
}
|
}
|
||||||
|
@ -389,7 +390,7 @@ error_t vbprintf(Buffer_t *buf, const char *fmt, va_list ap)
|
||||||
// Carry on to next modifier
|
// Carry on to next modifier
|
||||||
}
|
}
|
||||||
|
|
||||||
// Assert !rc for debugging purposes
|
// For debugging purposes
|
||||||
assert(!rc);
|
assert(!rc);
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
|
|
Loading…
Reference in New Issue