pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: rekgrpth@gmail.com
Subject: BUG #18248: Expression is always zero
Date: Thu, 14 Dec 2023 05:32:49 +0000
Message-ID: <18248-4250c882e2a8b8f6@postgresql.org> (raw)

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



view thread (5+ messages)  latest in thread

Message-ID: <18248-4250c882e2a8b8f6@postgresql.org>
Permalink:  ../18248-4250c882e2a8b8f6@postgresql.org/
Also on:    postgresql.org/message-id/18248-4250c882e2a8b8f6@postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, rekgrpth@gmail.com
  Subject: Re: BUG #18248: Expression is always zero
  In-Reply-To: <18248-4250c882e2a8b8f6@postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox