From 3bcbde250310787a2ad763b22a3f77305ac46359 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Mon, 16 May 2011 22:30:27 +0000 Subject: Add some parentheses svn path=/trunk/netsurf/; revision=12423 --- render/hubbub_binding.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'render') diff --git a/render/hubbub_binding.c b/render/hubbub_binding.c index f050862a0..a35ebb3ab 100644 --- a/render/hubbub_binding.c +++ b/render/hubbub_binding.c @@ -468,12 +468,12 @@ hubbub_error ref_node(void *ctx, void *node) xmlDoc *n = (xmlDoc *) node; uintptr_t count = (uintptr_t) n->_private; - n->_private = (void *) ++count; + n->_private = (void *) (++count); } else { xmlNode *n = (xmlNode *) node; uintptr_t count = (uintptr_t) n->_private; - n->_private = (void *) ++count; + n->_private = (void *) (++count); } return HUBBUB_OK; @@ -489,14 +489,14 @@ hubbub_error unref_node(void *ctx, void *node) assert(count != 0 && "Node has refcount of zero"); - n->_private = (void *) --count; + n->_private = (void *) (--count); } else { xmlNode *n = (xmlNode *) node; uintptr_t count = (uintptr_t) n->_private; assert(count != 0 && "Node has refcount of zero"); - n->_private = (void *) --count; + n->_private = (void *) (--count); if (count == 0 && n->parent == NULL) { xmlFreeNode(n); -- cgit v1.2.3