ucx/avl.c

changeset 197
a82f3456b76d
parent 196
1b4cdafef2eb
child 199
e25dc68336ec
     1.1 --- a/ucx/avl.c	Mon May 18 18:39:19 2015 +0200
     1.2 +++ b/ucx/avl.c	Mon May 18 18:42:45 2015 +0200
     1.3 @@ -146,8 +146,8 @@
     1.4      if (tree->root) {
     1.5          UcxAVLNode *n = tree->root;
     1.6          int cmpresult;
     1.7 -        while (cmpresult = tree->cmpfunc(
     1.8 -                ptrcast(key), ptrcast(n->key), tree->userdata)) {
     1.9 +        while ((cmpresult = tree->cmpfunc(
    1.10 +                ptrcast(key), ptrcast(n->key), tree->userdata))) {
    1.11              UcxAVLNode *m = cmpresult > 0 ? n->right : n->left;
    1.12              if (m) {
    1.13                  n = m;

mercurial