BUG #18248: Expression is always zero - Mailing list pgsql-bugs

From PG Bug reporting form
Subject BUG #18248: Expression is always zero
Date
Msg-id 18248-4250c882e2a8b8f6@postgresql.org
Whole thread Raw
Responses Re: BUG #18248: Expression is always zero
Re: BUG #18248: Expression is always zero
Re: BUG #18248: Expression is always zero
List 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 by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #18247: Integer overflow leads to negative width
Next
From: Laurenz Albe
Date:
Subject: Re: BUG #18244: Corruption in indexes involving whole-row expressions