Mon, 18 May 2015 18:42:45 +0200
fuck -Wparentheses
ucx/avl.c | file | annotate | diff | comparison | revisions |
--- a/ucx/avl.c Mon May 18 18:39:19 2015 +0200 +++ b/ucx/avl.c Mon May 18 18:42:45 2015 +0200 @@ -146,8 +146,8 @@ if (tree->root) { UcxAVLNode *n = tree->root; int cmpresult; - while (cmpresult = tree->cmpfunc( - ptrcast(key), ptrcast(n->key), tree->userdata)) { + while ((cmpresult = tree->cmpfunc( + ptrcast(key), ptrcast(n->key), tree->userdata))) { UcxAVLNode *m = cmpresult > 0 ? n->right : n->left; if (m) { n = m;