projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
aedf67e
)
Merge branch 'collectd-5.4' into collectd-5.5
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Thu, 3 Mar 2016 21:16:10 +0000
(22:16 +0100)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Thu, 3 Mar 2016 21:16:10 +0000
(22:16 +0100)
src/daemon/utils_avltree.c
patch
|
blob
|
history
diff --git
a/src/daemon/utils_avltree.c
b/src/daemon/utils_avltree.c
index
58b8b84
..
fcfbb94
100644
(file)
--- a/
src/daemon/utils_avltree.c
+++ b/
src/daemon/utils_avltree.c
@@
-245,7
+245,7
@@
static void rebalance (c_avl_tree_t *t, c_avl_node_t *n)
{
assert (n->right != NULL);
b_bottom = BALANCE (n->right);
- assert ((b_bottom >= -1)
||
(b_bottom <= 1));
+ assert ((b_bottom >= -1)
&&
(b_bottom <= 1));
if (b_bottom == 1)
n = rotate_right_left (t, n);
else
@@
-255,7
+255,7
@@
static void rebalance (c_avl_tree_t *t, c_avl_node_t *n)
{
assert (n->left != NULL);
b_bottom = BALANCE (n->left);
- assert ((b_bottom >= -1)
||
(b_bottom <= 1));
+ assert ((b_bottom >= -1)
&&
(b_bottom <= 1));
if (b_bottom == -1)
n = rotate_left_right (t, n);
else