Skip to content

Commit ae0ba1a

Browse files
committed
Add parenthesis to macro arguments in internal_helpers.h
1 parent 3303c15 commit ae0ba1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/dom/internal_helpers.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
#define DOM_INTERNAL_HELPERS
1919

2020
/* We're using the type flags of the zval to store an extra flag. */
21-
#define DOM_Z_OWNED(z, v) ZVAL_PTR(z, (void *) v)
22-
#define DOM_Z_UNOWNED(z, v) ZVAL_INDIRECT(z, (void *) v)
21+
#define DOM_Z_OWNED(z, v) ZVAL_PTR(z, (void *) (v))
22+
#define DOM_Z_UNOWNED(z, v) ZVAL_INDIRECT(z, (void *) (v))
2323
#define DOM_Z_IS_OWNED(z) (Z_TYPE_P(z) == IS_PTR)
2424

2525
#ifdef DOM_CE_H

0 commit comments

Comments
 (0)