]> jfr.im git - irc/atheme/libmowgli-2.git/commitdiff
container/patricia.c: fix abuse of comma syntax
authorAaron Jones <redacted>
Fri, 18 Jan 2019 03:29:41 +0000 (03:29 +0000)
committerAaron Jones <redacted>
Fri, 18 Jan 2019 03:29:41 +0000 (03:29 +0000)
Fixes compiler diagnostics:

patricia.c:933:29: warning: possible misuse of comma operator
    here [-Wcomma]

patricia.c:935:29: warning: possible misuse of comma operator
    here [-Wcomma]

src/libmowgli/container/patricia.c

index 5e353e57d244a15f209f2092f80202a8969abbdb..786a83f9025dd7e37454900ae0a3ce895218bb92 100644 (file)
@@ -930,9 +930,15 @@ mowgli_patricia_elem_delete(mowgli_patricia_t *dict, struct patricia_leaf *leaf)
                                dict->root = next;
 
                        if (IS_LEAF(next))
-                               next->leaf.parent = prev, next->leaf.parent_val = val;
+                       {
+                               next->leaf.parent = prev;
+                               next->leaf.parent_val = val;
+                       }
                        else
-                               next->node.parent = prev, next->node.parent_val = val;
+                       {
+                               next->node.parent = prev;
+                               next->node.parent_val = val;
+                       }
 
                        mowgli_heap_free(node_heap, delem);
                }