]> granicus.if.org Git - clang/commitdiff
Fix LexerTest signed/unsigned comparison.
authorErich Keane <erich.keane@intel.com>
Thu, 15 Jun 2017 00:28:13 +0000 (00:28 +0000)
committerErich Keane <erich.keane@intel.com>
Thu, 15 Jun 2017 00:28:13 +0000 (00:28 +0000)
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

unittests/Lex/LexerTest.cpp

index a708de8a5a87899d4cd7605e4ed07e34f0175c5b..4bb355393f70ce1279d9e4492ff4b1b51da761b2 100644 (file)
@@ -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;