You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 11, 2020. It is now read-only.
Casting directly from uint32_t to ViewType in the Defintion of wlc_view_get_type(view: wlc_handle) -> ViewData is failing, since ViewType is a full blown struct without a repr(C) definition and its bit-field is actually an u64 instead of an u32, so casting should never work and does not on my system (it is always 0).
Because the concrete Implementation of ViewType should not be expected to be stable anyway, wlc_view_get_type(view: wlc_handle) -> ViewData should really be wlc_view_get_type(view: wlc_handle) -> u32 instead with the return value of view.get_type() generated by ViewType::from_bits(), which should do the conversion correctly.
The text was updated successfully, but these errors were encountered:
Casting directly from
uint32_t
toViewType
in the Defintion ofwlc_view_get_type(view: wlc_handle) -> ViewData
is failing, sinceViewType
is a full blown struct without arepr(C)
definition and its bit-field is actually anu64
instead of anu32
, so casting should never work and does not on my system (it is always 0).Because the concrete Implementation of ViewType should not be expected to be stable anyway,
wlc_view_get_type(view: wlc_handle) -> ViewData
should really bewlc_view_get_type(view: wlc_handle) -> u32
instead with the return value ofview.get_type()
generated byViewType::from_bits()
, which should do the conversion correctly.The text was updated successfully, but these errors were encountered: