From 865151108279e1b3cb25d288335d76dc3eef7e4e Mon Sep 17 00:00:00 2001 From: Michael Dickens Date: Thu, 6 Dec 2018 13:16:04 -0500 Subject: responder: Better "abs()" compiler compatibility Use "std::abs" instead of "abs" for better compiler compatibility --- host/utils/latency/lib/Responder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/utils/latency/lib/Responder.cpp') diff --git a/host/utils/latency/lib/Responder.cpp b/host/utils/latency/lib/Responder.cpp index 8cb1170db..5597c0fcd 100644 --- a/host/utils/latency/lib/Responder.cpp +++ b/host/utils/latency/lib/Responder.cpp @@ -855,7 +855,7 @@ Responder::calibrate_usrp_for_test_run() _stream_cmd.stream_now = true; _usrp->issue_stream_cmd(_stream_cmd); - double diff = abs(ave_high - ave_low); + double diff = std::abs(ave_high - ave_low); if (diff < _opt.pulse_detection_threshold) { _return_code = RETCODE_BAD_ARGS; -- cgit v1.2.3