Skip to content

Commit 0a1f1dd

Browse files
committed
Place macro argument in parentheses
1 parent e2189be commit 0a1f1dd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/xsl/php_xsl.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,14 @@ zend_object *xsl_objects_new(zend_class_entry *class_type)
133133
zend_string *prop_name = ZSTR_INIT_LITERAL(php_name, false); \
134134
const zend_property_info *prop_info = zend_get_property_info(xsl_xsltprocessor_class_entry, prop_name, 0); \
135135
zend_string_release_ex(prop_name, false); \
136-
ZEND_ASSERT(OBJ_PROP_TO_NUM(prop_info->offset) == prop_index); \
137-
return OBJ_PROP_NUM(object, prop_index); \
136+
ZEND_ASSERT(OBJ_PROP_TO_NUM(prop_info->offset) == (prop_index)); \
137+
return OBJ_PROP_NUM(object, (prop_index)); \
138138
}
139139
#else
140140
# define XSL_DEFINE_PROP_ACCESSOR(c_name, php_name, prop_index) \
141141
zval *xsl_prop_##c_name(zend_object *object) \
142142
{ \
143-
return OBJ_PROP_NUM(object, prop_index); \
143+
return OBJ_PROP_NUM(object, (prop_index)); \
144144
}
145145
#endif
146146

0 commit comments

Comments
 (0)