%.f should have zero precision, not default precision

This commit is contained in:
Arthur Danskin 2017-03-30 00:32:07 -04:00
parent c03f55ec3a
commit e787f6b74b

View File

@ -439,6 +439,8 @@ void PrintfFormatter<Char, AF>::format(BasicCStringRef<Char> format_str) {
} else if (*s == '*') { } else if (*s == '*') {
++s; ++s;
spec.precision_ = internal::PrecisionHandler().visit(get_arg(s)); spec.precision_ = internal::PrecisionHandler().visit(get_arg(s));
} else {
spec.precision_ = 0;
} }
} }