Re: [BUGS] Postgresql on Ultraparc/Linux , Bug report and patch!

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [BUGS] Postgresql on Ultraparc/Linux , Bug report and patch!
Дата
Msg-id 199911251845.NAA10995@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: [BUGS] Postgresql on Ultraparc/Linux , Bug report and patch!  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
> Silvio Macedo <smacedo@ic.ac.uk> writes:
> > In src/backend/utils/adt/name.c you do:
> >     return (bool) strncmp(arg1->data, arg2->data, NAMEDATALEN) == 0;
> > In this way you are casting strncmp to bool, and not the comparison.
>
> Oops.  Good catch!
>
> Wonder if there are similar mistakes elsewhere?  If so, how could we
> find them?

Patch applied.  I just went through utils/adt/*.c looking for bool, and
the rest look OK.

--
  Bruce Momjian                        |  http://www.op.net/~candle
  maillist@candle.pha.pa.us            |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [BUGS] Postgresql on Ultraparc/Linux , Bug report and patch!
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [BUGS] Postgresql on Ultraparc/Linux , Bug report and patch!