mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-19 05:43:19 +03:00
removed some warnings by casting xmlChar to unsigned int and a couple of
* DOCBparser.c HTMLparser.c entities.c parser.c relaxng.c xmlschemas.c xpath.c: removed some warnings by casting xmlChar to unsigned int and a couple of others. * xmlschemastypes.c: fixes a segfault on empty hexBinary strings Daniel
This commit is contained in:
@ -459,13 +459,13 @@ xmlSchemaErrorContext(xmlSchemaParserCtxtPtr ctxt, xmlSchemaPtr schema,
|
||||
* Try to find contextual informations to report
|
||||
*/
|
||||
if (node->type == XML_ELEMENT_NODE) {
|
||||
line = (int) node->content;
|
||||
line = (long) node->content;
|
||||
} else if ((node->prev != NULL) &&
|
||||
(node->prev->type == XML_ELEMENT_NODE)) {
|
||||
line = (int) node->prev->content;
|
||||
line = (long) node->prev->content;
|
||||
} else if ((node->parent != NULL) &&
|
||||
(node->parent->type == XML_ELEMENT_NODE)) {
|
||||
line = (int) node->parent->content;
|
||||
line = (long) node->parent->content;
|
||||
}
|
||||
if ((node->doc != NULL) && (node->doc->URL != NULL))
|
||||
file = node->doc->URL;
|
||||
|
Reference in New Issue
Block a user