Skip to content

Commit

Permalink
Merge pull request #23 from aakp10/aakp10/abs-ambiguous-arg
Browse files Browse the repository at this point in the history
Fix ambiguous arg to abs() issue in g++-7
  • Loading branch information
vijay03 authored Aug 3, 2019
2 parents 3f76055 + 33c0c6a commit 703bd01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/db/db_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2234,7 +2234,7 @@ uint64_t micros() {
}

void print_timer_info(std::string msg, uint64_t a, uint64_t b) {
uint64_t diff = abs(a-b);
uint64_t diff = llabs(a-b);
printf("%s: %lu micros (%f ms)\n", msg.c_str(), diff, diff/1000.0);
}

Expand Down

0 comments on commit 703bd01

Please sign in to comment.