[cfe-commits] r98174 - /cfe/trunk/lib/Driver/ArgList.cpp
Ted Kremenek
kremenek at apple.com
Wed Mar 10 11:09:31 PST 2010
Author: kremenek
Date: Wed Mar 10 13:09:31 2010
New Revision: 98174
URL: http://llvm.org/viewvc/llvm-project?rev=98174&view=rev
Log:
Fix -Wsign-compare warnings reported by clang++.
Modified:
cfe/trunk/lib/Driver/ArgList.cpp
Modified: cfe/trunk/lib/Driver/ArgList.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ArgList.cpp?rev=98174&r1=98173&r2=98174&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/ArgList.cpp (original)
+++ cfe/trunk/lib/Driver/ArgList.cpp Wed Mar 10 13:09:31 2010
@@ -80,9 +80,9 @@
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)
More information about the cfe-commits
mailing list