From 33c0c6a911797095173629606429a373cf375e51 Mon Sep 17 00:00:00 2001 From: Karuna Grewal Date: Sat, 3 Aug 2019 18:48:27 +0530 Subject: [PATCH] Fix ambiguous arg to abs() issue in g++-7 --- src/db/db_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/db/db_test.cc b/src/db/db_test.cc index 01ccd66..3871cc2 100644 --- a/src/db/db_test.cc +++ b/src/db/db_test.cc @@ -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); }