projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab62b7e
)
static_cast to long, otherwise MSVC 2008 won't compile.
author
Francois Pichet
<pichet2000@gmail.com>
Mon, 4 Oct 2010 12:31:20 +0000
(12:31 +0000)
committer
Francois Pichet
<pichet2000@gmail.com>
Mon, 4 Oct 2010 12:31:20 +0000
(12:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115503
91177308
-0d34-0410-b5e6-
96231b3b80d8
unittests/Support/System.cpp
patch
|
blob
|
history
diff --git
a/unittests/Support/System.cpp
b/unittests/Support/System.cpp
index 94f1978b59813fbe96382a2d1d9f1199e3aa3e43..5fa7b39183851156feae75e21be84a646aa863ca 100644
(file)
--- 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);
}
}