diff options
author | Chris Lattner <sabre@nondot.org> | 2007-09-14 22:57:00 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-09-14 22:57:00 +0000 |
commit | dfa16830da82bc16e2113f4e273db13ef672e8e4 (patch) | |
tree | 50991d9e28e50dcca174c2106da24f0fc8182fc6 /lib | |
parent | 221a9a511b2c2fbbae26598d446fa5964763b470 (diff) | |
download | external_llvm-dfa16830da82bc16e2113f4e273db13ef672e8e4.zip external_llvm-dfa16830da82bc16e2113f4e273db13ef672e8e4.tar.gz external_llvm-dfa16830da82bc16e2113f4e273db13ef672e8e4.tar.bz2 |
fix a gcc warning: comparison between signed and unsigned integer expressions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41972 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Support/FoldingSet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/FoldingSet.cpp b/lib/Support/FoldingSet.cpp index 70daad9..e083f3b 100644 --- a/lib/Support/FoldingSet.cpp +++ b/lib/Support/FoldingSet.cpp @@ -59,7 +59,7 @@ void FoldingSetImpl::NodeID::AddDouble(double D) { void FoldingSetImpl::NodeID::AddAPFloat(const APFloat& apf) { APInt api = apf.convertToAPInt(); const uint64_t *p = api.getRawData(); - for (int i=0; i<api.getNumWords(); i++) + for (unsigned i=0; i<api.getNumWords(); i++) AddInteger(*p++); } void FoldingSetImpl::NodeID::AddString(const std::string &String) { |