Skip to content

Commit c98a7c1

Browse files
committed
Add parenthesis to macro arguments in dom_properties.h
1 parent ae0ba1a commit c98a7c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/dom/dom_properties.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ zend_result dom_xpath_register_node_ns_write(dom_object *obj, zval *newval);
164164
#endif
165165

166166
#define DOM_PROP_NODE(type, name, obj) \
167-
type name = (type) dom_object_get_node(obj); \
168-
if (UNEXPECTED(name == NULL)) { \
167+
type (name) = (type) dom_object_get_node(obj); \
168+
if (UNEXPECTED((name) == NULL)) { \
169169
php_dom_throw_error(INVALID_STATE_ERR, true); \
170170
return FAILURE; \
171171
}

0 commit comments

Comments
 (0)