[haiku-commits] Re: r39965 - haiku/trunk/src/add-ons/kernel/generic/dpc

  • From: Fredrik Holmqvist <fredrik.holmqvist@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 27 Dec 2010 22:36:14 +0100

2010/12/27 Ingo Weinhold <ingo_weinhold@xxxxxx>:
> 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 ...

Yes I know, I just wanted to comment about post/prefix and parantheses
in general.

>> Use '+ 1' for readability instead. CID 2983.
>
> ... this is much preferred anyway.

Then we came to the same conclusion :)

/Fredrik Holmqvist, TQH

Other related posts: