From: Francois Pichet Date: Mon, 4 Oct 2010 12:31:20 +0000 (+0000) Subject: static_cast to long, otherwise MSVC 2008 won't compile. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=2e0affb428f49d42a5db705d054492fad98ffd11;p=oota-llvm.git static_cast to long, otherwise MSVC 2008 won't compile. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115503 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/unittests/Support/System.cpp b/unittests/Support/System.cpp index 94f1978b598..5fa7b391838 100644 --- a/unittests/Support/System.cpp +++ b/unittests/Support/System.cpp @@ -11,6 +11,6 @@ class SystemTest : public ::testing::Test { TEST_F(SystemTest, TimeValue) { sys::TimeValue now = sys::TimeValue::now(); time_t now_t = time(NULL); - EXPECT_TRUE(abs(static_cast(now_t - now.toEpochTime())) < 2); + EXPECT_TRUE(abs(static_cast(now_t - now.toEpochTime())) < 2); } }