From: Erich Keane Date: Thu, 15 Jun 2017 00:28:13 +0000 (+0000) Subject: Fix LexerTest signed/unsigned comparison. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fa041f263c557dfffcb490c2c66ee0c26a7440c2;p=clang 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 --- 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;