mirror of
https://gitlab.xiph.org/xiph/icecast-common.git
synced 2024-11-03 04:17:20 -05:00
Fix: Added igloo_RO_IS_VALID() check to non-transparent-unions igloo_RO_TO_TYPE()
This commit is contained in:
parent
4a9dd94b07
commit
517de7207e
@ -98,7 +98,7 @@ int igloo_ro_new__return_zero(igloo_ro_t self, const igloo_ro_type_t *type, va_l
|
||||
#define igloo_RO__GETBASE(x) ((igloo_ro_base_t*)(x))
|
||||
#define igloo_RO_NULL NULL
|
||||
#define igloo_RO_IS_NULL(x) ((x) == NULL)
|
||||
#define igloo_RO_TO_TYPE(x,type) ((type*)(x))
|
||||
#define igloo_RO_TO_TYPE(x,type) (igloo_RO_IS_VALID((x),type) ? (type*)(x) : (type*)NULL)
|
||||
#endif
|
||||
|
||||
#define igloo_RO_GET_TYPE(x) (igloo_RO__GETBASE((x)) == NULL ? NULL : igloo_RO__GETBASE((x))->type)
|
||||
|
Loading…
Reference in New Issue
Block a user