Skip to content

Commit

Permalink
Avoid pointless cast to prevent implementation-defined conversion war…
Browse files Browse the repository at this point in the history
…ning
  • Loading branch information
nielsdos committed Jul 6, 2024
1 parent 292e936 commit ff3e767
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/xml/xml.c
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ static zend_string *xml_utf8_decode(const XML_Char *s, size_t len, const XML_Cha
c = '?';
}

ZSTR_VAL(str)[ZSTR_LEN(str)++] = (unsigned int)decoder(c);
ZSTR_VAL(str)[ZSTR_LEN(str)++] = decoder(c);
}
ZSTR_VAL(str)[ZSTR_LEN(str)] = '\0';
if (ZSTR_LEN(str) < len) {
Expand Down

0 comments on commit ff3e767

Please sign in to comment.