Skip to content

Commit ff3e767

Browse files
committed
Avoid pointless cast to prevent implementation-defined conversion warning
1 parent 292e936 commit ff3e767

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/xml/xml.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ static zend_string *xml_utf8_decode(const XML_Char *s, size_t len, const XML_Cha
523523
c = '?';
524524
}
525525

526-
ZSTR_VAL(str)[ZSTR_LEN(str)++] = (unsigned int)decoder(c);
526+
ZSTR_VAL(str)[ZSTR_LEN(str)++] = decoder(c);
527527
}
528528
ZSTR_VAL(str)[ZSTR_LEN(str)] = '\0';
529529
if (ZSTR_LEN(str) < len) {

0 commit comments

Comments
 (0)