summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Support/System.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/unittests/Support/System.cpp')
-rw-r--r--llvm/unittests/Support/System.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/Support/System.cpp b/llvm/unittests/Support/System.cpp
index b3dd17d380d..94f1978b598 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(now_t - now.toEpochTime()) < 2);
+ EXPECT_TRUE(abs(static_cast<time_t>(now_t - now.toEpochTime())) < 2);
}
}
OpenPOWER on IntegriCloud