diff options
author | Francois Pichet <pichet2000@gmail.com> | 2010-10-04 12:31:20 +0000 |
---|---|---|
committer | Francois Pichet <pichet2000@gmail.com> | 2010-10-04 12:31:20 +0000 |
commit | 3ae028c3b9bc4320fcc69fb76da0e53eb90b1064 (patch) | |
tree | 6b5878abd3cb50817d88cdc5ac520b130376101c | |
parent | 4108e7e1925fbe2a63ef878fdceed2ca2baea736 (diff) | |
download | bcm5719-llvm-3ae028c3b9bc4320fcc69fb76da0e53eb90b1064.tar.gz bcm5719-llvm-3ae028c3b9bc4320fcc69fb76da0e53eb90b1064.zip |
static_cast to long, otherwise MSVC 2008 won't compile.
llvm-svn: 115503
-rw-r--r-- | llvm/unittests/Support/System.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/Support/System.cpp b/llvm/unittests/Support/System.cpp index 94f1978b598..5fa7b391838 100644 --- a/llvm/unittests/Support/System.cpp +++ b/llvm/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); } } |