summaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-02-24 23:02:12 +0000
committerChris Lattner <sabre@nondot.org>2002-02-24 23:02:12 +0000
commit7f1576f0424542d6162c1cedc14629e4cbc3e80a (patch)
tree4bdd65fe19a4a5531708976ab78fa6956b051141 /support
parentb91ca1f7d69172713e44fc04ce46a4db7dd64739 (diff)
downloadllvm-7f1576f0424542d6162c1cedc14629e4cbc3e80a.tar.gz
llvm-7f1576f0424542d6162c1cedc14629e4cbc3e80a.tar.bz2
llvm-7f1576f0424542d6162c1cedc14629e4cbc3e80a.tar.xz
64 bit clean now
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1789 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'support')
-rw-r--r--support/lib/Support/CommandLine.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/support/lib/Support/CommandLine.cpp b/support/lib/Support/CommandLine.cpp
index d3966279b4..8633bef934 100644
--- a/support/lib/Support/CommandLine.cpp
+++ b/support/lib/Support/CommandLine.cpp
@@ -16,6 +16,7 @@
#include <map>
#include <set>
#include <iostream>
+
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;
}