Fix -Wsign-compare warnings reported by clang++.

llvm-svn: 98174
This commit is contained in:
Ted Kremenek 2010-03-10 19:09:31 +00:00
parent fc7a25dc36
commit 1a0c4d5900
1 changed files with 3 additions and 3 deletions

View File

@ -80,9 +80,9 @@ Arg *ArgList::getLastArg(OptSpecifier Id0, OptSpecifier Id1,
Arg *A1 = getLastArgNoClaim(Id1);
Arg *A2 = getLastArgNoClaim(Id2);
int A0Idx = A0 ? A0->getIndex() : -1;
int A1Idx = A1 ? A1->getIndex() : -1;
int A2Idx = A2 ? A2->getIndex() : -1;
int A0Idx = A0 ? (int) A0->getIndex() : -1;
int A1Idx = A1 ? (int) A1->getIndex() : -1;
int A2Idx = A2 ? (int) A2->getIndex() : -1;
if (A0Idx > A1Idx) {
if (A0Idx > A2Idx)