mirror of
git://git.musl-libc.org/musl
synced 2025-05-02 15:58:31 +00:00
printf("%#x",0) should print 0 not 0x0
This commit is contained in:
parent
2f0c415ceb
commit
3d54adbe47
@ -552,7 +552,7 @@ static int printf_core(FILE *f, const char *fmt, va_list *ap, union arg *nl_arg,
|
|||||||
fl |= ALT_FORM;
|
fl |= ALT_FORM;
|
||||||
case 'x': case 'X':
|
case 'x': case 'X':
|
||||||
a = fmt_x(arg.i, z, t&32);
|
a = fmt_x(arg.i, z, t&32);
|
||||||
if (fl & ALT_FORM) prefix+=(t>>4), pl=2;
|
if (arg.i && (fl & ALT_FORM)) prefix+=(t>>4), pl=2;
|
||||||
if (0) {
|
if (0) {
|
||||||
case 'o':
|
case 'o':
|
||||||
a = fmt_o(arg.i, z);
|
a = fmt_o(arg.i, z);
|
||||||
|
Loading…
Reference in New Issue
Block a user