From: Alexander Lakhin <exclusion@gmail.com>
To: rekgrpth@gmail.com
To: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #18248: Expression is always zero
Date: Thu, 14 Dec 2023 14:11:12 +0300
Message-ID: <3ba9dde0-ed11-2b58-5ede-b95d00e64228@gmail.com> (raw)
In-Reply-To: <18248-4250c882e2a8b8f6@postgresql.org>
References: <18248-4250c882e2a8b8f6@postgresql.org>
Hello Georgy,
14.12.2023 08:32, PG Bug reporting form wrote:
> The following bug has been logged on the website:
>
> Bug reference: 18248
> Logged by: RekGRpth
> Email address: rekgrpth@gmail.com
>
> 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
I see the same in
https://github.com/eggert/tz/blob/main/zic.c
So maybe you would like to report that to the tz mailing list?:
https://www.iana.org/time-zones
Best regards,
Alexander
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: exclusion@gmail.com, rekgrpth@gmail.com, pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #18248: Expression is always zero
In-Reply-To: <3ba9dde0-ed11-2b58-5ede-b95d00e64228@gmail.com>
* 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