Changeset 235942 in webkit


Ignore:
Timestamp:
Sep 12, 2018 9:47:19 AM (6 years ago)
Author:
Fujii Hironori
Message:

[Win][Clang] error: non-constant-expression cannot be narrowed from type 'int' to 'SHORT'
https://bugs.webkit.org/show_bug.cgi?id=189542

Reviewed by Alex Christensen.

Source/WebCore:

No new tests (No behavior change).

  • platform/graphics/win/IntPointWin.cpp:

(WebCore::IntPoint::operator POINTS const): Narrowed m_x and m_y by using static_cast.

Source/WebKit:

  • UIProcess/win/WebInspectorProxyWin.cpp:

(WebKit::WebInspectorProxy::platformCreateFrontendPage): Narrowed initialWindowWidth and initialWindowHeight by using static_cast.

Location:
trunk/Source
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r235935 r235942  
     12018-09-12  Fujii Hironori  <Hironori.Fujii@sony.com>
     2
     3        [Win][Clang] error: non-constant-expression cannot be narrowed from type 'int' to 'SHORT'
     4        https://bugs.webkit.org/show_bug.cgi?id=189542
     5
     6        Reviewed by Alex Christensen.
     7
     8        No new tests (No behavior change).
     9
     10        * platform/graphics/win/IntPointWin.cpp:
     11        (WebCore::IntPoint::operator POINTS const): Narrowed m_x and m_y by using static_cast.
     12
    1132018-09-12  Guillaume Emont  <guijemont@igalia.com>
    214
  • trunk/Source/WebCore/platform/graphics/win/IntPointWin.cpp

    r209603 r235942  
    5454IntPoint::operator POINTS() const
    5555{
    56     POINTS p = {m_x, m_y};
     56    POINTS p = { static_cast<SHORT>(m_x), static_cast<SHORT>(m_y) };
    5757    return p;
    5858}
  • trunk/Source/WebKit/ChangeLog

    r235940 r235942  
     12018-09-12  Fujii Hironori  <Hironori.Fujii@sony.com>
     2
     3        [Win][Clang] error: non-constant-expression cannot be narrowed from type 'int' to 'SHORT'
     4        https://bugs.webkit.org/show_bug.cgi?id=189542
     5
     6        Reviewed by Alex Christensen.
     7
     8        * UIProcess/win/WebInspectorProxyWin.cpp:
     9        (WebKit::WebInspectorProxy::platformCreateFrontendPage): Narrowed initialWindowWidth and initialWindowHeight by using static_cast.
     10
    1112018-09-12  Chris Dumez  <cdumez@apple.com>
    212
  • trunk/Source/WebKit/UIProcess/win/WebInspectorProxyWin.cpp

    r234019 r235942  
    232232    };
    233233
    234     RECT r = { 0, 0, initialWindowWidth, initialWindowHeight };
     234    RECT r = { 0, 0, static_cast<LONG>(initialWindowWidth), static_cast<LONG>(initialWindowHeight) };
    235235    auto page = inspectedPage();
    236236    m_inspectedViewWindow = page->viewWidget();
Note: See TracChangeset for help on using the changeset viewer.