From eaccea3b61455705286ede0de239dd84406352bb Mon Sep 17 00:00:00 2001 From: Karthik Ramesh Iyer Date: Fri, 29 May 2020 05:44:30 +0530 Subject: [PATCH] Use std::fabs() instead of abs() in rationalTime.cpp (#721) * Use std::abs() instead of abs() * Use std::fabs instead of std::abs --- src/opentime/rationalTime.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/opentime/rationalTime.cpp b/src/opentime/rationalTime.cpp index a36ae8774..48cfbc20c 100644 --- a/src/opentime/rationalTime.cpp +++ b/src/opentime/rationalTime.cpp @@ -290,7 +290,7 @@ RationalTime::to_time_string() const { // result and return the string at the end with a '-'. This provides // compatibility with ffmpeg, which allows negative time strings. if (std::signbit(total_seconds)) { - total_seconds = abs(total_seconds); + total_seconds = std::fabs(total_seconds); is_negative = true; }