1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-02-22 21:57:21 +03:00

Correct variable type to unsigned

* parser.c: fix len sign in xmlParseChunk()
This commit is contained in:
Nikolay Sivov 2010-01-19 15:38:05 +01:00 committed by Daniel Veillard
parent 794613770d
commit 7304683335

View File

@ -11546,7 +11546,7 @@ xmldecl_done:
*/
if ((ctxt->instate == XML_PARSER_START) && (ctxt->input != NULL) &&
(ctxt->input->buf != NULL) && (ctxt->input->buf->encoder != NULL)) {
int len = 45;
unsigned int len = 45;
if ((xmlStrcasestr(BAD_CAST ctxt->input->buf->encoder->name,
BAD_CAST "UTF-16")) ||