Skip to content
This repository was archived by the owner on Nov 1, 2021. It is now read-only.

Commit 949ea4a

Browse files
committed
Fixed more signed/unsigned mismatch warnings introduced in my change at r279076
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@279145 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent c8c64a2 commit 949ea4a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

unittests/libclang/LibclangTest.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -439,23 +439,23 @@ TEST_F(LibclangParseTest, AllSkippedRanges) {
439439
nullptr, 0, TUFlags);
440440

441441
CXSourceRangeList *Ranges = clang_getAllSkippedRanges(ClangTU);
442-
EXPECT_EQ(2u, Ranges->count);
442+
EXPECT_EQ(2U, Ranges->count);
443443

444444
CXSourceLocation cxl;
445445
unsigned line;
446446
cxl = clang_getRangeStart(Ranges->ranges[0]);
447447
clang_getSpellingLocation(cxl, nullptr, &line, nullptr, nullptr);
448-
EXPECT_EQ(1, line);
448+
EXPECT_EQ(1U, line);
449449
cxl = clang_getRangeEnd(Ranges->ranges[0]);
450450
clang_getSpellingLocation(cxl, nullptr, &line, nullptr, nullptr);
451-
EXPECT_EQ(3, line);
451+
EXPECT_EQ(3U, line);
452452

453453
cxl = clang_getRangeStart(Ranges->ranges[1]);
454454
clang_getSpellingLocation(cxl, nullptr, &line, nullptr, nullptr);
455-
EXPECT_EQ(2, line);
455+
EXPECT_EQ(2U, line);
456456
cxl = clang_getRangeEnd(Ranges->ranges[1]);
457457
clang_getSpellingLocation(cxl, nullptr, &line, nullptr, nullptr);
458-
EXPECT_EQ(4, line);
458+
EXPECT_EQ(4U, line);
459459

460460
clang_disposeSourceRangeList(Ranges);
461461
}

0 commit comments

Comments
 (0)