Cleanup: Avoid signed/unsigned comparisons.

The ones ones left are for DMD-defined constants.
This commit is contained in:
David Nadlinger
2012-12-20 01:06:41 +01:00
parent 189115fa98
commit 59a4a02e49
14 changed files with 35 additions and 36 deletions

View File

@@ -100,7 +100,7 @@ void processRecord(raw_ostream& os, Record& rec, string arch)
ListInit* paramsList = rec.getValueAsListInit("ParamTypes");
vector<string> params;
for(int i = 0; i < paramsList->getSize(); i++)
for(unsigned int i = 0; i < paramsList->getSize(); i++)
{
string t = dtype(paramsList->getElementAsRecord(i));
if(t == "")
@@ -128,7 +128,7 @@ void processRecord(raw_ostream& os, Record& rec, string arch)
if(params.size())
os << params[0];
for(int i = 1; i < params.size(); i++)
for(size_t i = 1; i < params.size(); i++)
os << ", " << params[i];
os << ")" + attributes(rec.getValueAsListInit("Properties")) + ";\n\n";