From 71f3f90b04c63182b7ba28d0f33cd6bdda56d95a Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Thu, 31 Aug 2017 20:50:25 +0000 Subject: [PATCH] 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 --- tools/llvm-pdbutil/DumpOutputStyle.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/llvm-pdbutil/DumpOutputStyle.cpp b/tools/llvm-pdbutil/DumpOutputStyle.cpp index 09424bd3df9..bc3b5b94a5f 100644 --- a/tools/llvm-pdbutil/DumpOutputStyle.cpp +++ b/tools/llvm-pdbutil/DumpOutputStyle.cpp @@ -716,18 +716,18 @@ Error DumpOutputStyle::dumpUdtStats() { } LongestNamespace += StringRef(" namespace ''").size(); - uint32_t LongestTypeLeafKind = getLongestTypeLeafName(UdtTargetStats); - uint32_t FieldWidth = std::max(LongestNamespace, LongestTypeLeafKind); + size_t LongestTypeLeafKind = getLongestTypeLeafName(UdtTargetStats); + size_t FieldWidth = std::max(LongestNamespace, LongestTypeLeafKind); // Compute the max number of digits for count and size fields, including comma // separators. StringRef CountHeader("Count"); StringRef SizeHeader("Size"); - uint32_t CD = NumDigits(UdtStats.Totals.Count); + size_t CD = NumDigits(UdtStats.Totals.Count); CD += (CD - 1) / 3; 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 = std::max(SD, SizeHeader.size());