this fixes a bit wraparound in the shift as the 1 is an int (32bit)
type that then gets shifted .. then after that cast to 64bit.
found by PVS studio
@fix
}
else if ((type = _legacy_evas_callback_type(array[i].desc)) != EVAS_CALLBACK_LAST)
{
- obj->callback_mask |= (1 << type);
+ obj->callback_mask |= (((uint64_t)1) << type);
}
}
}
static inline Eina_Bool
_evas_object_callback_has_by_type(Evas_Object_Protected_Data *obj, Evas_Callback_Type type)
{
- return (obj->callback_mask & (1 << type)) != 0;
+ return (obj->callback_mask & (((uint64_t)1) << type)) != 0;
}
static inline int