Re: [RFC] Fix div/mul crash and more undefined behavior

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: [RFC] Fix div/mul crash and more undefined behavior
Дата
Msg-id 20121119171736.GB13889@awork2.anarazel.de
обсуждение исходный текст
Ответ на Re: [RFC] Fix div/mul crash and more undefined behavior  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 2012-11-19 11:04:31 -0500, Tom Lane wrote:
> Xi Wang <xi.wang@gmail.com> writes:
> > Since INTn_MIN and INTn_MAX are standard macros from the C library,
> > can we assume that every C compiler should provide them in stdint.h?
>
> Not every C compiler provides stdint.h, unfortunately --- otherwise
> I'd not be so resistant to depending on this.

We already have hardcoded values for INT64_MIN in numutils.c's
pg_lltoa(). Given that I think we could just bite the apple and provide
our own values if the platform doesn't provide them.

Greetings,

Andres Freund



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

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: Materialized views WIP patch
Следующее
От: Jeff Davis
Дата:
Сообщение: Re: Enabling Checksums