C question about bitmasks in datetime.c

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема C question about bitmasks in datetime.c
Дата
Msg-id 20131001151536.GC13385@momjian.us
обсуждение исходный текст
Ответы Re: C question about bitmasks in datetime.c  (Andres Freund <andres@2ndquadrant.com>)
Список pgsql-hackers
I see a few cases of this code in src/backend/utils/adt/datetime.c:
   else if ((fmask & DTK_DATE_M) != DTK_DATE_M)

Wouldn't this be clearer as:
   else if (fmask & DTK_DATE_M)

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com
 + It's impossible for everything to be true. +



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: logical changeset generation v6.1
Следующее
От: Andres Freund
Дата:
Сообщение: Re: C question about bitmasks in datetime.c