Skip to content
Commit 8fd60c68 authored by Jason Ekstrand's avatar Jason Ekstrand Committed by Kristian Høgsberg
Browse files

Change WL_ZOMBIE_OBJECT from 0x2 to an actual pointer



In order to use the second-lowest bit of each pointer in wl_map for the
WL_MAP_ENTRY_LEGACY flag, every pointer has to be a multiple of 4.  This
was a good assumption, except with WL_ZOMBIE_OBJECT.  This commit creates
an actual static variable to which WL_ZOMBIE_OBJECT now points.  Since
things are only every compared to WL_ZOMBIE_OBJECT with "==" or "!=", the
only thing that matters is that it is unique.

Signed-off-by: default avatarJason Ekstrand <jason@jlekstrand.net>
parent a3870a29
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment