aboutsummaryrefslogtreecommitdiffstats
path: root/unittests/Support
diff options
context:
space:
mode:
authorFrancois Pichet <pichet2000@gmail.com>2010-10-04 12:31:20 +0000
committerFrancois Pichet <pichet2000@gmail.com>2010-10-04 12:31:20 +0000
commit2e0affb428f49d42a5db705d054492fad98ffd11 (patch)
treed079e5475607a7216bd3864ee56a7d2226d4abb8 /unittests/Support
parentab62b7e8618bda8063b49afab181bc7ed5546104 (diff)
downloadexternal_llvm-2e0affb428f49d42a5db705d054492fad98ffd11.zip
external_llvm-2e0affb428f49d42a5db705d054492fad98ffd11.tar.gz
external_llvm-2e0affb428f49d42a5db705d054492fad98ffd11.tar.bz2
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
Diffstat (limited to 'unittests/Support')
-rw-r--r--unittests/Support/System.cpp2
1 files changed, 1 insertions, 1 deletions
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 @@ 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<time_t>(now_t - now.toEpochTime())) < 2);
+ EXPECT_TRUE(abs(static_cast<long>(now_t - now.toEpochTime())) < 2);
}
}