Re: strange case of "if ((a & b))"

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: strange case of "if ((a & b))"
Дата
Msg-id YJjRxKhMXXd3O6ue@paquier.xyz
обсуждение исходный текст
Ответ на strange case of "if ((a & b))"  (Justin Pryzby <pryzby@telsasoft.com>)
Список pgsql-hackers
On Wed, Apr 28, 2021 at 01:29:36PM -0500, Justin Pryzby wrote:
> These look strange to me - the inner parens don't do anything.
> I wouldn't write it with 2x parens for the same reason I wouldn't write it with
> 8x parens.

>                  }
> -                else if ((!ctx->fast_forward))
> +                else if ((!ctx->fast_forward) != 0)

I find this part of the change harder to understand.
--
Michael

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Fujii Masao
Дата:
Сообщение: Re: Inaccurate error message when set fdw batch_size to 0
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Inaccurate error message when set fdw batch_size to 0