Skip to content

Commit

Permalink
Use std::fabs() instead of abs() in rationalTime.cpp (#721)
Browse files Browse the repository at this point in the history
* Use std::abs() instead of abs()

* Use std::fabs instead of std::abs
  • Loading branch information
KarthikRIyer committed May 29, 2020
1 parent 39aae41 commit eaccea3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/opentime/rationalTime.cpp
Expand Up @@ -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;
}

Expand Down

0 comments on commit eaccea3

Please sign in to comment.