mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-26 00:37:43 +03:00
Fix compiler warning after 153cf15905
Add missing cast for xmlNop to silence a compiler warning.
This commit is contained in:
committed by
Daniel Veillard
parent
cf8f0424db
commit
9c8eaabe83
2
parser.c
2
parser.c
@@ -2025,7 +2025,7 @@ static void xmlSHRINK (xmlParserCtxtPtr ctxt) {
|
|||||||
static void xmlGROW (xmlParserCtxtPtr ctxt) {
|
static void xmlGROW (xmlParserCtxtPtr ctxt) {
|
||||||
if ((((ctxt->input->end - ctxt->input->cur) > XML_MAX_LOOKUP_LIMIT) ||
|
if ((((ctxt->input->end - ctxt->input->cur) > XML_MAX_LOOKUP_LIMIT) ||
|
||||||
((ctxt->input->cur - ctxt->input->base) > XML_MAX_LOOKUP_LIMIT)) &&
|
((ctxt->input->cur - ctxt->input->base) > XML_MAX_LOOKUP_LIMIT)) &&
|
||||||
((ctxt->input->buf) && (ctxt->input->buf->readcallback != xmlNop)) &&
|
((ctxt->input->buf) && (ctxt->input->buf->readcallback != (xmlInputReadCallback) xmlNop)) &&
|
||||||
((ctxt->options & XML_PARSE_HUGE) == 0)) {
|
((ctxt->options & XML_PARSE_HUGE) == 0)) {
|
||||||
xmlFatalErr(ctxt, XML_ERR_INTERNAL_ERROR, "Huge input lookup");
|
xmlFatalErr(ctxt, XML_ERR_INTERNAL_ERROR, "Huge input lookup");
|
||||||
ctxt->instate = XML_PARSER_EOF;
|
ctxt->instate = XML_PARSER_EOF;
|
||||||
|
|||||||
Reference in New Issue
Block a user