fuck -Wparentheses

Mon, 18 May 2015 18:42:45 +0200

author
Mike Becker <universe@uap-core.de>
date
Mon, 18 May 2015 18:42:45 +0200
changeset 197
a82f3456b76d
parent 196
1b4cdafef2eb
child 198
b0f4fb043b47

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;

mercurial