Fix: lfstack reversed empty/non-empty return value
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 22 Oct 2014 11:55:05 +0000 (07:55 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 22 Oct 2014 23:00:54 +0000 (19:00 -0400)
The return value of lfstack push operation is logically reversed
compared to the documentation, and compared to wfstack and wfcqueue.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
urcu/static/lfstack.h

index 0be959436e7d4577c4e6e7673dad6b49fae74469..b49eb205a45ab3e5f409fc2ee9c490aa04e73e0e 100644 (file)
@@ -148,7 +148,7 @@ bool _cds_lfs_push(struct cds_lfs_stack *s,
                if (old_head == head)
                        break;
        }
-       return ___cds_lfs_empty_head(head);
+       return !___cds_lfs_empty_head(head);
 }
 
 /*
This page took 0.025883 seconds and 4 git commands to generate.