Skip to content

Commit 426772e

Browse files
committed
[interop] NFC, fix an integer comparison warning in VisitClassTemplateSpecializationDecl
1 parent d6a0268 commit 426772e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/ClangImporter/ImportDecl.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2721,9 +2721,9 @@ namespace {
27212721
// case, its not worth the compile time, so bail.
27222722
// TODO: this could be configurable at some point.
27232723
size_t specializationLimit = !isPair ? 1000 : 10000;
2724-
if (!isPair &&
2725-
llvm::size(decl->getSpecializedTemplate()->specializations()) >
2726-
specializationLimit) {
2724+
if (size_t(
2725+
llvm::size(decl->getSpecializedTemplate()->specializations())) >
2726+
specializationLimit) {
27272727
std::string name;
27282728
llvm::raw_string_ostream os(name);
27292729
decl->printQualifiedName(os);

0 commit comments

Comments
 (0)