Re: [dev] Parentheses

From: Truls Becken <truls.becken_AT_gmail.com>
Date: Thu, 4 Jul 2013 16:00:23 +0200

On 2013-07-04, at 14:12, Bjartur Thorlacius wrote:

>> type = argv[1][0] == 'b' ? S_IFBLK : S_IFCHR;
> type = ((argv[1][0] == 'b') ? S_IFBLK : S_IFCHR)

Yes, David did the commit with parens around the test. Not around the elvis operator, though.

-Truls
Received on Thu Jul 04 2013 - 16:00:23 CEST

This archive was generated by hypermail 2.3.0 : Thu Jul 04 2013 - 16:12:05 CEST