Add some parentheses

svn path=/trunk/netsurf/; revision=12423
This commit is contained in:
John Mark Bell 2011-05-16 22:30:27 +00:00
parent b8fd68db1b
commit 3bcbde2503
1 changed files with 4 additions and 4 deletions

View File

@ -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);