Changeset 235942 in webkit
- Timestamp:
- Sep 12, 2018 9:47:19 AM (6 years ago)
- Location:
- trunk/Source
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r235935 r235942 1 2018-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 1 13 2018-09-12 Guillaume Emont <guijemont@igalia.com> 2 14 -
trunk/Source/WebCore/platform/graphics/win/IntPointWin.cpp
r209603 r235942 54 54 IntPoint::operator POINTS() const 55 55 { 56 POINTS p = { m_x, m_y};56 POINTS p = { static_cast<SHORT>(m_x), static_cast<SHORT>(m_y) }; 57 57 return p; 58 58 } -
trunk/Source/WebKit/ChangeLog
r235940 r235942 1 2018-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 1 11 2018-09-12 Chris Dumez <cdumez@apple.com> 2 12 -
trunk/Source/WebKit/UIProcess/win/WebInspectorProxyWin.cpp
r234019 r235942 232 232 }; 233 233 234 RECT r = { 0, 0, initialWindowWidth, initialWindowHeight};234 RECT r = { 0, 0, static_cast<LONG>(initialWindowWidth), static_cast<LONG>(initialWindowHeight) }; 235 235 auto page = inspectedPage(); 236 236 m_inspectedViewWindow = page->viewWidget();
Note: See TracChangeset
for help on using the changeset viewer.