Re: BUG #18993: [BUG] Unreachable code in pg_next_dst_boundary()

Поиск
Список
Период
Сортировка
От Nathan Bossart
Тема Re: BUG #18993: [BUG] Unreachable code in pg_next_dst_boundary()
Дата
Msg-id aH5OzOYbypP8QFKv@nathan
обсуждение исходный текст
Ответ на BUG #18993: [BUG] Unreachable code in pg_next_dst_boundary()  (PG Bug reporting form <noreply@postgresql.org>)
Ответы Re: BUG #18993: [BUG] Unreachable code in pg_next_dst_boundary()
Список pgsql-bugs
On Mon, Jul 21, 2025 at 12:29:16PM +0000, PG Bug reporting form wrote:
> In pg_next_dst_boundary() (src/timezone/localtime.c), the following
> condition can never be true:
> ```
> if (tcycles - icycles >= 1 || icycles - tcycles >= 1)
>     return -1;
> ```
> This is unreachable because icycles is assigned directly from tcycles.

I see the following upstream commit and discussion related to this:

    https://github.com/eggert/tz/commit/b0bf6d8
    https://mm.icann.org/pipermail/tz/2013-August/019493.html

-- 
nathan



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