Commit 1ba8b4eb authored by yunlian@chromium.org's avatar yunlian@chromium.org

Webkit: use fabs() for double

fabsf() is for float, use fabs() for double instead.

BUG=chromium:348044

Review URL: https://codereview.chromium.org/176713008

git-svn-id: svn://svn.chromium.org/blink/trunk@168557 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 32b606f0
......@@ -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;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment