Re: BUG #18248: Expression is always zero

From: Alexander Lakhin <exclusion(at)gmail(dot)com>
To: rekgrpth(at)gmail(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #18248: Expression is always zero
Date: 2023-12-14 11:11:12
Message-ID: 3ba9dde0-ed11-2b58-5ede-b95d00e64228@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

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(at)gmail(dot)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Julien Rouhaud 2023-12-14 14:38:39 Re: BUG #18245: pg_restore accepts same output file name as input file name
Previous Message Julien Rouhaud 2023-12-14 11:10:36 Re: BUG #18248: Expression is always zero