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:
a55b3df
)
Use the overloaded std::abs rather than C's abs(int) to address Clang's -Wabsolute...
author
David Blaikie
<dblaikie@gmail.com>
Wed, 26 Feb 2014 19:12:28 +0000
(19:12 +0000)
committer
David Blaikie
<dblaikie@gmail.com>
Wed, 26 Feb 2014 19:12:28 +0000
(19:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202286
91177308
-0d34-0410-b5e6-
96231b3b80d8
unittests/Support/TimeValueTest.cpp
patch
|
blob
|
history
diff --git
a/unittests/Support/TimeValueTest.cpp
b/unittests/Support/TimeValueTest.cpp
index e0368d3d409a768db79f3767c9887290622a2eb7..8058812ff4ed2491f73cb4529923f0e63a1630d7 100644
(file)
--- a/
unittests/Support/TimeValueTest.cpp
+++ b/
unittests/Support/TimeValueTest.cpp
@@
-17,7
+17,7
@@
namespace {
TEST(TimeValue, time_t) {
sys::TimeValue now = sys::TimeValue::now();
time_t now_t = time(NULL);
- EXPECT_TRUE(abs(static_cast<long>(now_t - now.toEpochTime())) < 2);
+ EXPECT_TRUE(
std::
abs(static_cast<long>(now_t - now.toEpochTime())) < 2);
}
TEST(TimeValue, Win32FILETIME) {