[Webkit-unassigned] [Bug 237899] New: Suppress warnings for implicit conversion from unsigned long to double

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 15 09:25:29 PDT 2022


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

            Bug ID: 237899
           Summary: Suppress warnings for implicit conversion from
                    unsigned long to double
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Tools / Tests
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: Basuke.Suzuki at sony.com

C:/PSDev/neko2/Tools/TestWebKitAPI/Tests/WTF/Int128.cpp:254:71: warning: implicit conversion from 'unsigned long' to 'double' changes value from 13527593555435554952 to 13527593555435554816 [-Wimplicit-const-int-float-conversion]
    double approx_double = 0xffffeeeeddddcccc * std::pow(2.0, 64.0) + 0xbbbbaaaa99998888;
                                                                    ~ ^~~~~~~~~~~~~~~~~~
C:/PSDev/neko2/Tools/TestWebKitAPI/Tests/WTF/Int128.cpp:254:28: warning: implicit conversion from 'unsigned long' to 'double' changes value from 18446725308424768716 to 18446725308424769536 [-Wimplicit-const-int-float-conversion]
    double approx_double = 0xffffeeeeddddcccc * std::pow(2.0, 64.0) + 0xbbbbaaaa99998888;
                           ^~~~~~~~~~~~~~~~~~ ~
2 warnings generated.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220315/05c37504/attachment.htm>


More information about the webkit-unassigned mailing list