Add parenthesis to macro arguments in internal_helpers.h

This commit is contained in:
Niels Dossche 2024-07-06 23:32:34 +02:00
parent 3303c15754
commit ae0ba1a5c6

View file

@ -18,8 +18,8 @@
#define DOM_INTERNAL_HELPERS #define DOM_INTERNAL_HELPERS
/* We're using the type flags of the zval to store an extra flag. */ /* We're using the type flags of the zval to store an extra flag. */
#define DOM_Z_OWNED(z, v) ZVAL_PTR(z, (void *) v) #define DOM_Z_OWNED(z, v) ZVAL_PTR(z, (void *) (v))
#define DOM_Z_UNOWNED(z, v) ZVAL_INDIRECT(z, (void *) v) #define DOM_Z_UNOWNED(z, v) ZVAL_INDIRECT(z, (void *) (v))
#define DOM_Z_IS_OWNED(z) (Z_TYPE_P(z) == IS_PTR) #define DOM_Z_IS_OWNED(z) (Z_TYPE_P(z) == IS_PTR)
#ifdef DOM_CE_H #ifdef DOM_CE_H