Re: pgsql: Sync our copy of the timezone library with IANA release tzcode20
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: pgsql: Sync our copy of the timezone library with IANA release tzcode20 |
| Дата | |
| Msg-id | 31996.1563509161@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: pgsql: Sync our copy of the timezone library with IANA releasetzcode20 (Michael Paquier <michael@paquier.xyz>) |
| Ответы |
Re: pgsql: Sync our copy of the timezone library with IANA release tzcode20
|
| Список | pgsql-hackers |
Michael Paquier <michael@paquier.xyz> writes:
> This is causing a compilation warning on Windows:
> src/timezone/zic.c(2401): warning C4804: '-' : unsafe use of type
> 'bool' in operation
Hmmm ... the code looks like
bool locut,
hicut;
...
thistimecnt = -locut - hicut;
so I think your compiler has a point. I shall complain to upstream.
At best, it's really unobvious what this code is meant to do, and
at worst (eg, depending on whether bool promotes to signed or unsigned
int) the results are unportable.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера