Re: pgsql: Sync our copy of the timezone library with IANA release tzcode20
В списке pgsql-committers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: pgsql: Sync our copy of the timezone library with IANA release tzcode20 |
| Дата | |
| Msg-id | 29391.1476933733@sss.pgh.pa.us обсуждение |
| Ответ на | Re: pgsql: Sync our copy of the timezone library with IANA release tzcode20 (Thomas Munro <thomas.munro@enterprisedb.com>) |
| Список | pgsql-committers |
Thomas Munro <thomas.munro@enterprisedb.com> writes:
> On Thu, Oct 20, 2016 at 11:56 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Sync our copy of the timezone library with IANA release tzcode2016g.
> My compiler (Apple LLVM version 8.0.0 (clang-800.0.38)) doesn't like this:
> zic.c:427:53: error: implicit conversion from 'unsigned long long' to
> 'int' changes value from 18446744073709551615 to -1
> [-Werror,-Wconstant-conversion]
> int amax = nitems_max < SIZE_MAX ? nitems_max : SIZE_MAX;
> ~~~~ ^~~~~~~~
Hmm ... I wonder what the IANA guys think they're doing here?
There are no platforms on which INT_MAX is more than SIZE_MAX.
I think we can just take this out.
(My RHEL6 compiler didn't object to this, but I can reproduce
it on Mac.)
regards, tom lane
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера