forked from OSchip/llvm-project
Use the overloaded std::abs rather than C's abs(int) to address Clang's -Wabsolute-value
llvm-svn: 202286
This commit is contained in:
parent
994f63dc00
commit
51a184058d
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue