[ExecutionEngine] Add a static cast to the unittest for r241962 to suppress a
authorLang Hames <lhames@gmail.com>
Sat, 11 Jul 2015 02:07:28 +0000 (02:07 +0000)
committerLang Hames <lhames@gmail.com>
Sat, 11 Jul 2015 02:07:28 +0000 (02:07 +0000)
warning.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241974 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/ExecutionEngine/MCJIT/MCJITTest.cpp

index 284434e3c62cdb04c82f8ff2c56720d40d8e700a..cd2bc561ccc5eb8ab3364969d45669e2d60af337 100644 (file)
@@ -258,7 +258,7 @@ TEST_F(MCJITTest, lazy_function_creator_lambda) {
   
   // Verify that our handler was called for each unresolved function.
   auto I = UnresolvedExternals.begin(), E = UnresolvedExternals.end();
-  EXPECT_EQ(UnresolvedExternals.size(), 2);
+  EXPECT_EQ(UnresolvedExternals.size(), static_cast<size_t>(2));
   EXPECT_FALSE(std::find(I, E, "Foo1") == E);
   EXPECT_FALSE(std::find(I, E, "Foo2") == E);
 }