summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Keane <erich.keane@intel.com>2017-06-15 00:28:13 +0000
committerErich Keane <erich.keane@intel.com>2017-06-15 00:28:13 +0000
commitfa041f263c557dfffcb490c2c66ee0c26a7440c2 (patch)
tree36aa2400bbb529d94bf1bf7074903168c5214283
parent785449800e4eb3d9e35f0dc6c6f1f20bd5306cfd (diff)
Fix LexerTest signed/unsigned comparison.
Werror was catching a signed/unsigned compare in an assert, correct the signed 'expected' value to be unsigned. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@305435 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--unittests/Lex/LexerTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/Lex/LexerTest.cpp b/unittests/Lex/LexerTest.cpp
index a708de8a5a..4bb355393f 100644
--- a/unittests/Lex/LexerTest.cpp
+++ b/unittests/Lex/LexerTest.cpp
@@ -383,7 +383,7 @@ TEST_F(LexerTest, DontOverallocateStringifyArgs) {
MacroInfo *MI = PP->AllocateMacroInfo({});
MI->setIsFunctionLike();
MI->setArgumentList(ArgList, Allocator);
- EXPECT_EQ(3, MI->getNumArgs());
+ EXPECT_EQ(3u, MI->getNumArgs());
EXPECT_TRUE(MI->isFunctionLike());
Token Eof;