From 7f1576f0424542d6162c1cedc14629e4cbc3e80a Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 24 Feb 2002 23:02:12 +0000 Subject: 64 bit clean now git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1789 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/CommandLine.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/Support/CommandLine.cpp b/lib/Support/CommandLine.cpp index d3966279b4..8633bef934 100644 --- a/lib/Support/CommandLine.cpp +++ b/lib/Support/CommandLine.cpp @@ -16,6 +16,7 @@ #include #include #include + using namespace cl; using std::map; using std::pair; @@ -354,7 +355,7 @@ bool EnumValueBase::handleOccurance(const char *ArgName, const string &Arg) { unsigned EnumValueBase::getOptionWidth() const { unsigned BaseSize = Option::getOptionWidth(); for (unsigned i = 0; i < ValueMap.size(); ++i) - BaseSize = std::max(BaseSize, std::strlen(ValueMap[i].first)+8); + BaseSize = std::max(BaseSize, (unsigned)std::strlen(ValueMap[i].first)+8); return BaseSize; } @@ -384,7 +385,7 @@ bool EnumFlagsBase::handleOccurance(const char *ArgName, const string &Arg) { unsigned EnumFlagsBase::getOptionWidth() const { unsigned BaseSize = 0; for (unsigned i = 0; i < ValueMap.size(); ++i) - BaseSize = std::max(BaseSize, std::strlen(ValueMap[i].first)+6); + BaseSize = std::max(BaseSize, (unsigned)std::strlen(ValueMap[i].first)+6); return BaseSize; } @@ -417,7 +418,7 @@ bool EnumListBase::handleOccurance(const char *ArgName, const string &Arg) { unsigned EnumListBase::getOptionWidth() const { unsigned BaseSize = 0; for (unsigned i = 0; i < ValueMap.size(); ++i) - BaseSize = std::max(BaseSize, std::strlen(ValueMap[i].first)+6); + BaseSize = std::max(BaseSize, (unsigned)std::strlen(ValueMap[i].first)+6); return BaseSize; } -- cgit v1.2.3