Changeset 223130 in webkit


Ignore:
Timestamp:
Oct 10, 2017 5:47:00 AM (7 years ago)
Author:
Adrian Perez de Castro
Message:

[WPE] Build failure due to invalid cast of EGLNativeWindowType when targetting 64-bit ARM
https://bugs.webkit.org/show_bug.cgi?id=178090

Reviewed by Žan Doberšek.

  • WebProcess/WebPage/wpe/AcceleratedSurfaceWPE.cpp:

(WebKit::AcceleratedSurfaceWPE::window const): Use static_cast instead of reinterpret_cast,
this way extending values of EGLNativeWindowType to 64 bits is allowed.

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r223129 r223130  
     12017-10-10  Adrian Perez de Castro  <aperez@igalia.com>
     2
     3        [WPE] Build failure due to invalid cast of EGLNativeWindowType when targetting 64-bit ARM
     4        https://bugs.webkit.org/show_bug.cgi?id=178090
     5
     6        Reviewed by Žan Doberšek.
     7
     8        * WebProcess/WebPage/wpe/AcceleratedSurfaceWPE.cpp:
     9        (WebKit::AcceleratedSurfaceWPE::window const): Use static_cast instead of reinterpret_cast,
     10        this way extending values of EGLNativeWindowType to 64 bits is allowed.
     11
    1122017-10-10  Adrian Perez de Castro  <aperez@igalia.com>
    213
  • trunk/Source/WebKit/WebProcess/WebPage/wpe/AcceleratedSurfaceWPE.cpp

    r217123 r223130  
    7676{
    7777    ASSERT(m_backend);
    78     return reinterpret_cast<uint64_t>(wpe_renderer_backend_egl_target_get_native_window(m_backend));
     78    static_assert(sizeof(EGLNativeWindowType) <= sizeof(uint64_t), "EGLNativeWindowType must not be longer than 64 bits.");
     79    return static_cast<uint64_t>(wpe_renderer_backend_egl_target_get_native_window(m_backend));
    7980}
    8081
Note: See TracChangeset for help on using the changeset viewer.