From 6700b4910e201efc850b0b24ef87de26180097b7 Mon Sep 17 00:00:00 2001 From: Cameron Desrochers Date: Thu, 18 Aug 2016 20:56:48 +0000 Subject: [PATCH] Fixed more signed/unsigned mismatch warnings introduced in my change at r279076 llvm-svn: 279145 --- clang/unittests/libclang/LibclangTest.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/clang/unittests/libclang/LibclangTest.cpp b/clang/unittests/libclang/LibclangTest.cpp index 715e525..f2a96d6 100644 --- a/clang/unittests/libclang/LibclangTest.cpp +++ b/clang/unittests/libclang/LibclangTest.cpp @@ -439,23 +439,23 @@ TEST_F(LibclangParseTest, AllSkippedRanges) { nullptr, 0, TUFlags); CXSourceRangeList *Ranges = clang_getAllSkippedRanges(ClangTU); - EXPECT_EQ(2u, Ranges->count); + EXPECT_EQ(2U, Ranges->count); CXSourceLocation cxl; unsigned line; cxl = clang_getRangeStart(Ranges->ranges[0]); clang_getSpellingLocation(cxl, nullptr, &line, nullptr, nullptr); - EXPECT_EQ(1, line); + EXPECT_EQ(1U, line); cxl = clang_getRangeEnd(Ranges->ranges[0]); clang_getSpellingLocation(cxl, nullptr, &line, nullptr, nullptr); - EXPECT_EQ(3, line); + EXPECT_EQ(3U, line); cxl = clang_getRangeStart(Ranges->ranges[1]); clang_getSpellingLocation(cxl, nullptr, &line, nullptr, nullptr); - EXPECT_EQ(2, line); + EXPECT_EQ(2U, line); cxl = clang_getRangeEnd(Ranges->ranges[1]); clang_getSpellingLocation(cxl, nullptr, &line, nullptr, nullptr); - EXPECT_EQ(4, line); + EXPECT_EQ(4U, line); clang_disposeSourceRangeList(Ranges); } -- 2.7.4