Skip to content

Commit eaccea3

Browse files
authored
Use std::fabs() instead of abs() in rationalTime.cpp (#721)
* Use std::abs() instead of abs() * Use std::fabs instead of std::abs
1 parent 39aae41 commit eaccea3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/opentime/rationalTime.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ RationalTime::to_time_string() const {
290290
// result and return the string at the end with a '-'. This provides
291291
// compatibility with ffmpeg, which allows negative time strings.
292292
if (std::signbit(total_seconds)) {
293-
total_seconds = abs(total_seconds);
293+
total_seconds = std::fabs(total_seconds);
294294
is_negative = true;
295295
}
296296

0 commit comments

Comments
 (0)