diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-09-24 09:01:34 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-09-24 09:01:34 +0000 |
commit | ddfce8f95b4e2cf9b899d1a4f2105d12ede0a155 (patch) | |
tree | a6950edf7ccd0274396f203c471f156592ad2e06 /unittests/Support/System.cpp | |
parent | 18fac3c0d22dbdc9b7939042e2e20f443f700761 (diff) |
unittests: Support Windows.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114727 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Support/System.cpp')
-rw-r--r-- | unittests/Support/System.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/Support/System.cpp b/unittests/Support/System.cpp index b3dd17d380..94f1978b59 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(now_t - now.toEpochTime()) < 2); + EXPECT_TRUE(abs(static_cast<time_t>(now_t - now.toEpochTime())) < 2); } } |