]> granicus.if.org Git - clang/commitdiff
Fix the 64-bit build. operator<<(DiagnosticBuilder, long) doesn't exist, so
authorJeffrey Yasskin <jyasskin@google.com>
Fri, 11 Jun 2010 06:58:43 +0000 (06:58 +0000)
committerJeffrey Yasskin <jyasskin@google.com>
Fri, 11 Jun 2010 06:58:43 +0000 (06:58 +0000)
ptrdiff_t (long on 64-bit, apparently) is ambiguous between the int and
unsigned int overloads.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105816 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaOverload.cpp

index eda7e7ad885d3a06574b864a33e49ff89d97113f..d3e8243f94f6ca2e585c3cd958c25c88efb615f3 100644 (file)
@@ -5739,7 +5739,7 @@ Sema::PrintOverloadCandidates(OverloadCandidateSet& CandidateSet,
   }
 
   if (I != E)
-    Diag(OpLoc, diag::note_ovl_too_many_candidates) << E - I;
+    Diag(OpLoc, diag::note_ovl_too_many_candidates) << int(E - I);
 }
 
 static bool CheckUnresolvedAccess(Sema &S, OverloadExpr *E, DeclAccessPair D) {