BUG #18248: Expression is always zero

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: rekgrpth(at)gmail(dot)com
Subject: BUG #18248: Expression is always zero
Date: 2023-12-14 05:32:49
Message-ID: 18248-4250c882e2a8b8f6@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 18248
Logged by: RekGRpth
Email address: rekgrpth(at)gmail(dot)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

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Laurenz Albe 2023-12-14 05:43:26 Re: BUG #18244: Corruption in indexes involving whole-row expressions
Previous Message PG Bug reporting form 2023-12-14 04:16:53 BUG #18247: Integer overflow leads to negative width