[Webkit-unassigned] [Bug 130651] New: WebKit::resistanceForDelta() truncates 'scaleDistance' to integer value using abs()
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Mar 23 07:24:43 PDT 2014
https://bugs.webkit.org/show_bug.cgi?id=130651
Summary: WebKit::resistanceForDelta() truncates 'scaleDistance'
to integer value using abs()
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebKit2
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: ddkilzer at webkit.org
CC: thorton at apple.com
Compiling WebKit with trunk clang causes this warning:
Source/WebKit2/UIProcess/mac/ViewGestureControllerMac.mm:112:28: error: using integer absolute value function 'abs' when argument is of floating point type [-Werror,-Wabsolute-value]
double scaleDistance = abs(limit - currentScale);
^
Source/WebKit2/UIProcess/mac/ViewGestureControllerMac.mm:112:28: note: use function 'fabs' instead
double scaleDistance = abs(limit - currentScale);
^~~
fabs
1 error generated.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list