r279145 - Fixed more signed/unsigned mismatch warnings introduced in my change at r279076
Cameron Desrochers via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 18 13:56:49 PDT 2016
Author: cameron314
Date: Thu Aug 18 15:56:48 2016
New Revision: 279145
URL: http://llvm.org/viewvc/llvm-project?rev=279145&view=rev
Log:
Fixed more signed/unsigned mismatch warnings introduced in my change at r279076
Modified:
cfe/trunk/unittests/libclang/LibclangTest.cpp
Modified: cfe/trunk/unittests/libclang/LibclangTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/libclang/LibclangTest.cpp?rev=279145&r1=279144&r2=279145&view=diff
==============================================================================
--- cfe/trunk/unittests/libclang/LibclangTest.cpp (original)
+++ cfe/trunk/unittests/libclang/LibclangTest.cpp Thu Aug 18 15:56:48 2016
@@ -439,23 +439,23 @@ TEST_F(LibclangParseTest, AllSkippedRang
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);
}
More information about the cfe-commits
mailing list