%.f should have zero precision, not default precision

This commit is contained in:
Victor Zverovich
2018-01-27 17:56:19 -08:00
parent a09f748894
commit 5060568f72
2 changed files with 5 additions and 0 deletions

View File

@@ -454,6 +454,8 @@ void basic_printf_context<OutputIt, Char, AF>::format() {
++it;
spec.precision_ =
visit(internal::PrintfPrecisionHandler(), get_arg(it));
} else {
spec.precision_ = 0;
}
}