提交 cc44d9f2 编写于 作者: R Rich Felker

zero precision with zero value should not inhibit prefix/width printing

上级 3d54adbe
......@@ -570,7 +570,10 @@ static int printf_core(FILE *f, const char *fmt, va_list *ap, union arg *nl_arg,
case 'u':
a = fmt_u(arg.i, z);
}
if (!arg.i && !p) continue;
if (!arg.i && !p) {
a=z;
break;
}
if (p>=0) fl &= ~ZERO_PAD;
p = MAX(p, z-a + !arg.i);
break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册