[llvm-commits] [llvm] r115503 - /llvm/trunk/unittests/Support/System.cpp
Francois Pichet
pichet2000 at gmail.com
Mon Oct 4 05:31:20 PDT 2010
Author: fpichet
Date: Mon Oct 4 07:31:20 2010
New Revision: 115503
URL: http://llvm.org/viewvc/llvm-project?rev=115503&view=rev
Log:
static_cast to long, otherwise MSVC 2008 won't compile.
Modified:
llvm/trunk/unittests/Support/System.cpp
Modified: llvm/trunk/unittests/Support/System.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Support/System.cpp?rev=115503&r1=115502&r2=115503&view=diff
==============================================================================
--- llvm/trunk/unittests/Support/System.cpp (original)
+++ llvm/trunk/unittests/Support/System.cpp Mon Oct 4 07:31:20 2010
@@ -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);
}
}
More information about the llvm-commits
mailing list