%.f should have zero precision, not default precision

This commit is contained in:
Arthur Danskin authored and Victor Zverovich committed 2017-04-08 07:18:10 -07:00
1 parent c03f55ec3a
commit cbac016cce
2 files changed
+5

No files matched your search

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