mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-26 05:36:36 +00:00
[llvm-cov] Fix incorrect usage of .precision specifier in format() call.
Summary: Existing version doesn't work on Windows as it always prints 0.00. Reviewers: Dor1s Reviewed By: Dor1s Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D42767 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@323923 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1076969bfe
commit
48c8d1e763
@ -343,7 +343,7 @@ void CoveragePrinterHTML::emitFileSummary(raw_ostream &OS, StringRef SF,
|
||||
{
|
||||
raw_string_ostream RSO{S};
|
||||
if (Total)
|
||||
RSO << format("%6.2f", 7, Pctg) << "% ";
|
||||
RSO << format("%*.2f", 7, Pctg) << "% ";
|
||||
else
|
||||
RSO << "- ";
|
||||
RSO << '(' << Hit << '/' << Total << ')';
|
||||
|
Loading…
x
Reference in New Issue
Block a user