mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-13 14:47:00 +00:00
Fix some size_t / uint32_t mismatched comparisons.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@312278 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
70b69dcc75
commit
71f3f90b04
@ -716,18 +716,18 @@ Error DumpOutputStyle::dumpUdtStats() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
LongestNamespace += StringRef(" namespace ''").size();
|
LongestNamespace += StringRef(" namespace ''").size();
|
||||||
uint32_t LongestTypeLeafKind = getLongestTypeLeafName(UdtTargetStats);
|
size_t LongestTypeLeafKind = getLongestTypeLeafName(UdtTargetStats);
|
||||||
uint32_t FieldWidth = std::max(LongestNamespace, LongestTypeLeafKind);
|
size_t FieldWidth = std::max(LongestNamespace, LongestTypeLeafKind);
|
||||||
|
|
||||||
// Compute the max number of digits for count and size fields, including comma
|
// Compute the max number of digits for count and size fields, including comma
|
||||||
// separators.
|
// separators.
|
||||||
StringRef CountHeader("Count");
|
StringRef CountHeader("Count");
|
||||||
StringRef SizeHeader("Size");
|
StringRef SizeHeader("Size");
|
||||||
uint32_t CD = NumDigits(UdtStats.Totals.Count);
|
size_t CD = NumDigits(UdtStats.Totals.Count);
|
||||||
CD += (CD - 1) / 3;
|
CD += (CD - 1) / 3;
|
||||||
CD = std::max(CD, CountHeader.size());
|
CD = std::max(CD, CountHeader.size());
|
||||||
|
|
||||||
uint32_t SD = NumDigits(UdtStats.Totals.Size);
|
size_t SD = NumDigits(UdtStats.Totals.Size);
|
||||||
SD += (SD - 1) / 3;
|
SD += (SD - 1) / 3;
|
||||||
SD = std::max(SD, SizeHeader.size());
|
SD = std::max(SD, SizeHeader.size());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user