X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdio%2Fvfprintf.c;h=50fb55c16149ed1166ff86077acf650f1efe721a;hb=2fab90a71acd3698954c08b9062db67188443dd7;hp=8c81efc2aafd9bc9acf4ae98176189f6857c7c85;hpb=58e2396a9aa23c132faf4198ca4d779c84955b38;p=musl diff --git a/src/stdio/vfprintf.c b/src/stdio/vfprintf.c index 8c81efc2..50fb55c1 100644 --- a/src/stdio/vfprintf.c +++ b/src/stdio/vfprintf.c @@ -107,8 +107,6 @@ union arg static void pop_arg(union arg *arg, int type, va_list *ap) { - /* Give the compiler a hint for optimizing the switch. */ - if ((unsigned)type > MAXSTATE) return; switch (type) { case PTR: arg->p = va_arg(*ap, void *); break; case INT: arg->i = va_arg(*ap, int); @@ -561,7 +559,7 @@ static int printf_core(FILE *f, const char *fmt, va_list *ap, union arg *nl_arg, if (0) { case 'o': a = fmt_o(arg.i, z); - if ((fl&ALT_FORM) && p=0) fl &= ~ZERO_PAD; + if (xp) fl &= ~ZERO_PAD; if (!arg.i && !p) { a=z; break;