From: Laurenz Albe <laurenz.albe@cybertec.at>
To: rekgrpth@gmail.com
To: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #18248: Expression is always zero
Date: Thu, 14 Dec 2023 12:08:20 +0100
Message-ID: <58fa3c416a9dd4c98a2a541eb1afb67f586fbaaa.camel@cybertec.at> (raw)
In-Reply-To: <18248-4250c882e2a8b8f6@postgresql.org>
References: <18248-4250c882e2a8b8f6@postgresql.org>
On Thu, 2023-12-14 at 05:32 +0000, PG Bug reporting form wrote:
> 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
This code is just taken from the GNU C library, and it's in our interest to
keep it as much aligned with upstram code as possible.
Yours,
Laurenz Albe
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: laurenz.albe@cybertec.at, rekgrpth@gmail.com
Subject: Re: BUG #18248: Expression is always zero
In-Reply-To: <58fa3c416a9dd4c98a2a541eb1afb67f586fbaaa.camel@cybertec.at>
References: <18248-4250c882e2a8b8f6@postgresql.org> <58fa3c416a9dd4c98a2a541eb1afb67f586fbaaa.camel@cybertec.at>
* 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