diff options
author | Nick Wellnhofer <wellnhofer@aevum.de> | 2017-11-13 21:23:17 +0100 |
---|---|---|
committer | Nick Wellnhofer <wellnhofer@aevum.de> | 2017-11-27 13:42:30 +0100 |
commit | b21895717debfc513640463371e76d2d16051491 (patch) | |
tree | 655b4ce649060c341b5fcf57c612395398032f72 | |
parent | 359e750482e9b54cb10c7af477cc108d21f7531c (diff) | |
download | libxml2-b21895717debfc513640463371e76d2d16051491.tar.gz |
Fix -Wenum-compare warnings
Also fixes a serious bug in xmlXPtrNewRangeNodePoint.
-rw-r--r-- | xpath.c | 2 | ||||
-rw-r--r-- | xpointer.c | 2 |
2 files changed, 1 insertions, 3 deletions
@@ -12386,7 +12386,7 @@ xmlXPathNodeCollectAndTest(xmlXPathParserContextPtr ctxt, default: break; } - } else if (cur->type == type) { + } else if (cur->type == (xmlElementType) type) { if (cur->type == XML_NAMESPACE_DECL) XP_TEST_HIT_NS else @@ -467,8 +467,6 @@ xmlXPtrNewRangeNodePoint(xmlNodePtr start, xmlXPathObjectPtr end) { return(NULL); if (end == NULL) return(NULL); - if (start->type != XPATH_POINT) - return(NULL); if (end->type != XPATH_POINT) return(NULL); |