Skip to content

Commit

Permalink
Merge pull request #7726 from tchaikov/wip-fix-ftbfs-gcc6
Browse files Browse the repository at this point in the history
test/time: no need to abs(uint64_t) for comparing

Reviewed-by: Adam Emerson <aemerson@redhat.com>
  • Loading branch information
liewegas committed Mar 11, 2016
2 parents 07c41fc + da0f660 commit 4adeb41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/common/test_time.cc
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ static void system_clock_conversions() {

ASSERT_EQ(Clock::to_double(brt), bd);
// Fudge factor
ASSERT_LT(abs((Clock::from_double(bd) - brt).count()), 30);
ASSERT_LT((Clock::from_double(bd) - brt).count(), 30U);
}

TEST(RealClock, Sanity) {
Expand Down

0 comments on commit 4adeb41

Please sign in to comment.