From fa041f263c557dfffcb490c2c66ee0c26a7440c2 Mon Sep 17 00:00:00 2001 From: Erich Keane <erich.keane@intel.com> Date: Thu, 15 Jun 2017 00:28:13 +0000 Subject: [PATCH] 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 --- unittests/Lex/LexerTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unittests/Lex/LexerTest.cpp b/unittests/Lex/LexerTest.cpp index a708de8a5a8..4bb355393f7 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; -- GitLab