Skip to content

Commit

Permalink
Fix ambiguous arg to abs() issue in g++-7
Browse files Browse the repository at this point in the history
  • Loading branch information
aakp10 committed Aug 3, 2019
1 parent 3f76055 commit 33c0c6a
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 33c0c6a

Please sign in to comment.