Skip to content

Commit 1362917

Browse files
committed
ext/dom: add cast to work around -Wassign-enum
1 parent a4dc11e commit 1362917

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/dom/element.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1026,7 +1026,7 @@ static void php_set_attribute_id(xmlAttrPtr attrp, bool is_id) /* {{{ */
10261026
}
10271027
} else if (is_id == 0 && attrp->atype == XML_ATTRIBUTE_ID) {
10281028
xmlRemoveID(attrp->doc, attrp);
1029-
attrp->atype = 0;
1029+
attrp->atype = (xmlAttributeType)0;
10301030
}
10311031
}
10321032
/* }}} */

0 commit comments

Comments
 (0)