Skip to content

Commit 4e44e7c

Browse files
[Sema] Remove an unnecessary cast (NFC) (#152644)
numTypeParams is already of unsigned. Co-authored-by: Corentin Jabot <[email protected]>
1 parent 9beb18a commit 4e44e7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Sema/SemaObjC.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ static QualType applyObjCTypeArgs(Sema &S, SourceLocation loc, QualType type,
691691
if (!anyPackExpansions && finalTypeArgs.size() != numTypeParams) {
692692
S.Diag(loc, diag::err_objc_type_args_wrong_arity)
693693
<< (typeArgs.size() < typeParams->size()) << objcClass->getDeclName()
694-
<< (unsigned)finalTypeArgs.size() << (unsigned)numTypeParams;
694+
<< (unsigned)finalTypeArgs.size() << numTypeParams;
695695
S.Diag(objcClass->getLocation(), diag::note_previous_decl) << objcClass;
696696

697697
if (failOnError)

0 commit comments

Comments
 (0)