projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e9edda
)
fix a gcc warning: comparison between signed and unsigned integer expressions
author
Chris Lattner
<sabre@nondot.org>
Fri, 14 Sep 2007 22:57:00 +0000
(22:57 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 14 Sep 2007 22:57:00 +0000
(22:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41972
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/FoldingSet.cpp
patch
|
blob
|
history
diff --git
a/lib/Support/FoldingSet.cpp
b/lib/Support/FoldingSet.cpp
index 70daad9a619501ca2761596be65a44868c5dbf4b..e083f3b9d1a76d3fbb0dee1e3437835b73a45e3c 100644
(file)
--- 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) {