Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1156)

Unified Diff: Source/core/html/TimeRanges.cpp

Issue 176713008: Webkit: use fabs() for double (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Webkit: use fabs() for double Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/TimeRanges.cpp
diff --git a/Source/core/html/TimeRanges.cpp b/Source/core/html/TimeRanges.cpp
index 407ff32353beab5bb4b390e6b1e07e1da66ff4d0..bdf477b72029fa06e1f03e3f4f62c0f3d9a5c1ca 100644
--- a/Source/core/html/TimeRanges.cpp
+++ b/Source/core/html/TimeRanges.cpp
@@ -193,9 +193,9 @@ double TimeRanges::nearest(double time) const
if (time >= startTime && time <= endTime)
return time;
if (fabs(startTime - time) < closest)
- closest = fabsf(startTime - time);
+ closest = fabs(startTime - time);
else if (fabs(endTime - time) < closest)
- closest = fabsf(endTime - time);
+ closest = fabs(endTime - time);
}
return closest;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698