BUG #18248: Expression is always zero

Поиск
Список
Период
Сортировка
От PG Bug reporting form
Тема BUG #18248: Expression is always zero
Дата
Msg-id 18248-4250c882e2a8b8f6@postgresql.org
обсуждение исходный текст
Ответы Re: BUG #18248: Expression is always zero  (Laurenz Albe <laurenz.albe@cybertec.at>)
Re: BUG #18248: Expression is always zero  (Julien Rouhaud <rjuju123@gmail.com>)
Re: BUG #18248: Expression is always zero  (Alexander Lakhin <exclusion@gmail.com>)
Список pgsql-bugs
The following bug has been logged on the website:

Bug reference:      18248
Logged by:          RekGRpth
Email address:      rekgrpth@gmail.com
PostgreSQL version: 16.1
Operating system:   docker alpine
Description:

The value of expression 'thistimecnt >> 31 >> 31 >> 2' (in
src/timezone/zic.c) is zero regardless of the value of the left operand
'thistimecnt', because it is shifted by 64 (in total) bits, which is greater
or equal to its size of 64 bits. 

Maybe this was what was meant?
thistimecnt >> 31 >> 2


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

Предыдущее
От: PG Bug reporting form
Дата:
Сообщение: BUG #18247: Integer overflow leads to negative width
Следующее
От: Laurenz Albe
Дата:
Сообщение: Re: BUG #18244: Corruption in indexes involving whole-row expressions