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 11:59:43 +0000 (07:59 -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 9531de5bb951f31c47bfc51ef2f8ff9a343cc0fc..4799bc4dc0f05e33a0a343cb53e9e8c9efee1836 100644 (file)
@@ -160,7 +160,7 @@ bool _cds_lfs_push(cds_lfs_stack_ptr_t u_s,
                if (old_head == head)
                        break;
        }
-       return ___cds_lfs_empty_head(head);
+       return !___cds_lfs_empty_head(head);
 }
 
 /*
This page took 0.025687 seconds and 4 git commands to generate.