On 2010-12-27 at 21:40:30 [+0100], fredrik.holmqvist@xxxxxxxxx wrote: > Author: tqh > Date: 2010-12-27 21:40:30 +0100 (Mon, 27 Dec 2010) > New Revision: 39965 > Changeset: http://dev.haiku-os.org/changeset/39965 > > Modified: > haiku/trunk/src/add-ons/kernel/generic/dpc/dpc.c > Log: > Postfix/prefix increment evaluation order is not changed by parantheses. Putting the parentheses around the subexpression that already takes precendence never has an effect. Precedence wasn't the issue here, though. The semantics of the post-increment operator, which always returns the old value, was. The pre-increment operator would have worked. But ... > Use '+ 1' for readability instead. CID 2983. ... this is much preferred anyway. CU, Ingo