mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Use the overloaded std::abs rather than C's abs(int) to address Clang's -Wabsolute-value
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202286 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a55b3dfdc6
commit
3ae2abb11e
@ -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
Block a user