rculfhash: Add parenthesis around macro arg use in iterator macro
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 10 Nov 2011 18:55:07 +0000 (13:55 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 10 Nov 2011 18:55:07 +0000 (13:55 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
urcu/rculfhash.h

index 37eaccf6b153c031ef29865d8ad8ec1a6e008ce5..06e3eb9cc64d4bc659adb70086662524a3fe8614 100644 (file)
@@ -384,7 +384,7 @@ void cds_lfht_resize(struct cds_lfht *ht, unsigned long new_size);
        for (cds_lfht_first(ht, iter),                                  \
                        pos = caa_container_of(cds_lfht_iter_get_node(iter), \
                                        typeof(*(pos)), member);        \
-               &pos->member != NULL;                                   \
+               &(pos)->member != NULL;                                 \
                cds_lfht_next(ht, iter),                                \
                        pos = caa_container_of(cds_lfht_iter_get_node(iter), \
                                        typeof(*(pos)), member))
@@ -394,7 +394,7 @@ void cds_lfht_resize(struct cds_lfht *ht, unsigned long new_size);
        for (cds_lfht_lookup(ht, match, hash, key, iter),               \
                        pos = caa_container_of(cds_lfht_iter_get_node(iter), \
                                        typeof(*(pos)), member);        \
-               &pos->member != NULL;                                   \
+               &(pos)->member != NULL;                                 \
                cds_lfht_next_duplicate(ht, match, key, iter),          \
                        pos = caa_container_of(cds_lfht_iter_get_node(iter), \
                                        typeof(*(pos)), member))
This page took 0.026571 seconds and 4 git commands to generate.