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 | 2204906892a4682bcb6f3fafd1ae1b52a034482c (patch) | |
tree | 50991d9e28e50dcca174c2106da24f0fc8182fc6 /lib/Support/FoldingSet.cpp | |
parent | 7e9edda51d120c1c7c099929944f909a4f296a39 (diff) |
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/Support/FoldingSet.cpp')
-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 70daad9a61..e083f3b9d1 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) { |