Skip to content

Commit 703bd01

Browse files
authored
Merge pull request #23 from aakp10/aakp10/abs-ambiguous-arg
Fix ambiguous arg to abs() issue in g++-7
2 parents 3f76055 + 33c0c6a commit 703bd01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/db/db_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2234,7 +2234,7 @@ uint64_t micros() {
22342234
}
22352235

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

0 commit comments

Comments
 (0)