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:
David Blaikie 2014-02-26 19:12:28 +00:00
parent 994f63dc00
commit 51a184058d
1 changed files with 1 additions and 1 deletions

View File

@ -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) {