[llvm] r286559 - [ADT/MathExtras] Make buildbot happy again.

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 10 20:03:29 PST 2016


Author: davide
Date: Thu Nov 10 22:03:29 2016
New Revision: 286559

URL: http://llvm.org/viewvc/llvm-project?rev=286559&view=rev
Log:
[ADT/MathExtras] Make buildbot happy again.

Modified:
    llvm/trunk/unittests/Support/MathExtrasTest.cpp

Modified: llvm/trunk/unittests/Support/MathExtrasTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Support/MathExtrasTest.cpp?rev=286559&r1=286558&r2=286559&view=diff
==============================================================================
--- llvm/trunk/unittests/Support/MathExtrasTest.cpp (original)
+++ llvm/trunk/unittests/Support/MathExtrasTest.cpp Thu Nov 10 22:03:29 2016
@@ -166,15 +166,15 @@ TEST(MathExtras, isPowerOf2_64) {
 }
 
 TEST(MathExtras, PowerOf2Ceil) {
-  EXPECT_EQ(0, PowerOf2Ceil(0));
-  EXPECT_EQ(8, PowerOf2Ceil(8));
-  EXPECT_EQ(8, PowerOf2Ceil(7));
+  EXPECT_EQ(0U, PowerOf2Ceil(0U));
+  EXPECT_EQ(8U, PowerOf2Ceil(8U));
+  EXPECT_EQ(8U, PowerOf2Ceil(7U));
 }
 
 TEST(MathExtras, PowerOf2Floor) {
-  EXPECT_EQ(0, PowerOf2Floor(0));
-  EXPECT_EQ(8, PowerOf2Floor(8));
-  EXPECT_EQ(4, PowerOf2Floor(7));
+  EXPECT_EQ(0U, PowerOf2Floor(0U));
+  EXPECT_EQ(8U, PowerOf2Floor(8U));
+  EXPECT_EQ(4U, PowerOf2Floor(7U));
 }
 
 TEST(MathExtras, ByteSwap_32) {




More information about the llvm-commits mailing list