[Webkit-unassigned] [Bug 130298] New: PlatformTimeRanges::nearest() truncates closestDelta values from double to float

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Mar 15 21:54:00 PDT 2014


https://bugs.webkit.org/show_bug.cgi?id=130298

           Summary: PlatformTimeRanges::nearest() truncates closestDelta
                    values from double to float
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Platform
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: ddkilzer at webkit.org
                CC: darin at apple.com, eric.carlson at apple.com


WebCore/platform/graphics/PlatformTimeRanges.cpp:210:28: error: absolute value function 'fabsf' given an argument of type 'double' but has parameter of type 'float' which may cause truncation of value [-Werror,-Wabsolute-value]
            closestDelta = fabsf(startTime - time);
                           ^
WebCore/platform/graphics/PlatformTimeRanges.cpp:210:28: note: use function 'fabs' instead
            closestDelta = fabsf(startTime - time);
                           ^~~~~
                           fabs
WebCore/platform/graphics/PlatformTimeRanges.cpp:214:28: error: absolute value function 'fabsf' given an argument of type 'double' but has parameter of type 'float' which may cause truncation of value [-Werror,-Wabsolute-value]
            closestDelta = fabsf(endTime - time);
                           ^
WebCore/platform/graphics/PlatformTimeRanges.cpp:214:28: note: use function 'fabs' instead
            closestDelta = fabsf(endTime - time);
                           ^~~~~
                           fabs
2 errors 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