From 8313dcbb14f69624d8a5fed4a11cace1b55deaf7 Mon Sep 17 00:00:00 2001 From: Andrea Mattavelli Date: Thu, 16 Feb 2017 10:59:33 +0000 Subject: Silenced warning: comparison of integers of different signs ('const int' and 'const unsigned long long') --- unittests/Expr/ExprTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'unittests/Expr/ExprTest.cpp') diff --git a/unittests/Expr/ExprTest.cpp b/unittests/Expr/ExprTest.cpp index b1f593a5..fba15535 100644 --- a/unittests/Expr/ExprTest.cpp +++ b/unittests/Expr/ExprTest.cpp @@ -182,7 +182,7 @@ TEST(ExprTest, ReadExprFoldingConstantUpdate) { // Check that constant folding worked EXPECT_EQ(Expr::Constant, read.get()->getKind()); ConstantExpr *c = static_cast(read.get()); - EXPECT_EQ(32, c->getZExtValue()); + EXPECT_EQ(UINT64_C(32), c->getZExtValue()); } TEST(ExprTest, ReadExprFoldingConstantMultipleUpdate) { @@ -209,7 +209,7 @@ TEST(ExprTest, ReadExprFoldingConstantMultipleUpdate) { // Check that constant folding worked EXPECT_EQ(Expr::Constant, read.get()->getKind()); ConstantExpr *c = static_cast(read.get()); - EXPECT_EQ(64, c->getZExtValue()); + EXPECT_EQ(UINT64_C(64), c->getZExtValue()); } TEST(ExprTest, ReadExprFoldingSymbolicValueUpdate) { -- cgit 1.4.1