[Win][Clang] error: non-constant-expression cannot be narrowed from type 'int' to...
authorHironori.Fujii@sony.com <Hironori.Fujii@sony.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 12 Sep 2018 16:47:19 +0000 (16:47 +0000)
committerHironori.Fujii@sony.com <Hironori.Fujii@sony.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 12 Sep 2018 16:47:19 +0000 (16:47 +0000)
commit70bca3e399fc881900fa058058265c8a9bb12b6d
tree1172e83be1425c1db1c7355af2be5cd5fc188a6c
parentbe33c20308b2bc3db0d9e78e1f1393f8fa38dae9
[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.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@235942 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/win/IntPointWin.cpp
Source/WebKit/ChangeLog
Source/WebKit/UIProcess/win/WebInspectorProxyWin.cpp