Skip to content
  • Alex Richardson's avatar
    GType: introduce GTYPE_TO_POINTER/GPOINTER_TO_TYPE · d0e03f09
    Alex Richardson authored and Philip Withnall's avatar Philip Withnall committed
    On CHERI-enabled systems we use uintptr_t as the underlying storage for
    GType and therefore casting to gsize strips the upper bits from a pointer.
    Fix this by casting via uintptr_t instead and introduce a new set of
    macros to convert between GType and pointers.
    d0e03f09