From f1a098cbdcdbe3d049e1be44a43bab8753fec812 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Mon, 7 Aug 2006 20:22:33 +0000 Subject: [PATCH] fix types, add missing parentheses --- ext/dom/node.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ext/dom/node.c b/ext/dom/node.c index 90f0b067a5..6d16579e27 100644 --- a/ext/dom/node.c +++ b/ext/dom/node.c @@ -1684,11 +1684,11 @@ static void dom_canonicalization(INTERNAL_FUNCTION_PARAMETERS, int mode) xmlDocPtr docp; xmlNodeSetPtr nodeset = NULL; dom_object *intern; - long exclusive=0, with_comments=0, file_len=0; + zend_bool exclusive=0, with_comments=0; xmlChar **inclusive_ns_prefixes = NULL; char *file = NULL; - int ret = -1; - xmlOutputBufferPtr buf; + int ret = -1, file_len = 0; + xmlOutputBufferPtr buf; xmlXPathContextPtr ctxp=NULL; xmlXPathObjectPtr xpathobjp=NULL; zend_uchar file_type = IS_STRING; @@ -1750,7 +1750,7 @@ static void dom_canonicalization(INTERNAL_FUNCTION_PARAMETERS, int mode) int xquery_len; if (zend_hash_find(ht, "query", sizeof("query"), (void**)&tmp) == SUCCESS && - Z_TYPE_PP(tmp) == IS_STRING || Z_TYPE_PP(tmp) == IS_UNICODE) { + (Z_TYPE_PP(tmp) == IS_STRING || Z_TYPE_PP(tmp) == IS_UNICODE)) { zxquery = tmp; /* if (Z_TYPE_PP(tmp) == IS_STRING) { -- 2.50.1