mirror of
git://git.musl-libc.org/musl
synced 2025-03-31 23:58:56 +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;
|
||||
case 'x': case 'X':
|
||||
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) {
|
||||
case 'o':
|
||||
a = fmt_o(arg.i, z);
|
||||
|
Loading…
Reference in New Issue
Block a user