Fix signed-compare warning.
authorJustin Lebar <justin.lebar@gmail.com>
Fri, 26 Feb 2021 02:14:40 +0000 (18:14 -0800)
committerJustin Lebar <justin.lebar@gmail.com>
Fri, 26 Feb 2021 02:14:40 +0000 (18:14 -0800)
Introduced in my c90dac27e94ec354a3e8919556ac5bc89b62c731.

clang/lib/Sema/Sema.cpp

index 9885c1f..181a56f 100644 (file)
@@ -2308,8 +2308,8 @@ bool Sema::tryExprAsCall(Expr &E, QualType &ZeroArgCallReturnTy,
 ///  ill-formed expression.
 static void noteOverloads(Sema &S, const UnresolvedSetImpl &Overloads,
                           const SourceLocation FinalNoteLoc) {
-  int ShownOverloads = 0;
-  int SuppressedOverloads = 0;
+  unsigned ShownOverloads = 0;
+  unsigned SuppressedOverloads = 0;
   for (UnresolvedSetImpl::iterator It = Overloads.begin(),
        DeclsEnd = Overloads.end(); It != DeclsEnd; ++It) {
     if (ShownOverloads >= S.Diags.getNumOverloadCandidatesToShow()) {