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 94f1978..5fa7b39 100644
--- a/unittests/Support/System.cpp
+++ b/unittests/Support/System.cpp
@@ -11,6 +11,6 @@
TEST_F(SystemTest, TimeValue) {
sys::TimeValue now = sys::TimeValue::now();
time_t now_t = time(NULL);
- EXPECT_TRUE(abs(static_cast<time_t>(now_t - now.toEpochTime())) < 2);
+ EXPECT_TRUE(abs(static_cast<long>(now_t - now.toEpochTime())) < 2);
}
}