Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rDjcd-002x5n-WD for pgsql-bugs@arkaria.postgresql.org; Thu, 14 Dec 2023 11:11:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rDjcc-0079h7-MD for pgsql-bugs@arkaria.postgresql.org; Thu, 14 Dec 2023 11:11:18 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rDjcc-0079fi-De for pgsql-bugs@lists.postgresql.org; Thu, 14 Dec 2023 11:11:18 +0000 Received: from mail-lj1-x230.google.com ([2a00:1450:4864:20::230]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rDjcZ-00ALhT-Ns for pgsql-bugs@lists.postgresql.org; Thu, 14 Dec 2023 11:11:17 +0000 Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-2cc3647bf06so21642761fa.2 for ; Thu, 14 Dec 2023 03:11:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702552274; x=1703157074; darn=lists.postgresql.org; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=392wV3EBCbLa0txqUKw380ftDYPv5TZ2IzW7CFqpVTY=; b=nC9NzAJc2Qf0d6SV90ikPr9igmrIaBDdRsYDMbe4HgL/dlO6NVZwXzSTRnqS2+tNhK xg7eGExA+RtPtnzNA03l+urH1S0YD0I6BzEu2/BJ0r4qDQ1h3lKHgHa+Tyqu7KV/8k4E d3l3OwIe5ZhdtZcnZioT48Qc7U9Qio8Y40SV+MJJA3AewHxZn7TOuQlaXZIbh65TpexQ qmFofkmmSupWIZ8qt7f8exM12j/bEKYkMlE2Lo+tAKapcXF4tkrogVijLy/yXYC5FsmC BlTBY0lr/hm1Qvxu+HomAAC6eWghpXF3PRhkW+PpZ7+MLXhuHU5D3YlzksCKIRLv3N64 d5iQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702552274; x=1703157074; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=392wV3EBCbLa0txqUKw380ftDYPv5TZ2IzW7CFqpVTY=; b=jrP3WoTRA4aTPffy1C20v7kVw+sgOJorwxV9qp//GqxfFZ7D8dE74lWN45T7BDIlvS J9M0yBHQRXpixdrrvozGB1kTFrMGjwr+jPWbhmk2mKi2q22chq3qsIv4vmSoYF54DQI2 pHh39UxGMD0ObJkUk8uh6X0tVR2Dar8vDD3s+QxXr4AFMXHDKHF3VszQqB+7BJV/3aKX WBX57rOp9wsJNLqabIL5WroJZmnxgIBn4zheSEVhTgjfbV3SaVJuNSkpO3HZ/mo3CzEz sgeZ2fnwbCjdvnzxLBNLh3ihE4/ud3PXAmVY2H8YFlFWdKyTLFRO3otXnUFpTTz06cGl soDg== X-Gm-Message-State: AOJu0YwZkBUWf1Lvd1lY9gZnt/+oKYDb5qHvCpz6sUNLNwusJkL2Gkr5 MvAIdHp46u6Bdg1SLz4dncqOKq5tloI= X-Google-Smtp-Source: AGHT+IHj6lEDjV2HVIaBvyO1Erp8Hxj6cVNk0Q93LvJhBnJfVRGDc5KG7KFHLLjqWrYG0/WR207DRg== X-Received: by 2002:a2e:a914:0:b0:2cb:2a1f:4716 with SMTP id j20-20020a2ea914000000b002cb2a1f4716mr4701808ljq.8.1702552273936; Thu, 14 Dec 2023 03:11:13 -0800 (PST) Received: from [1.0.0.7] ([178.155.26.88]) by smtp.gmail.com with ESMTPSA id w2-20020a2e9bc2000000b002ca01163d2bsm2087940ljj.84.2023.12.14.03.11.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 14 Dec 2023 03:11:13 -0800 (PST) Message-ID: <3ba9dde0-ed11-2b58-5ede-b95d00e64228@gmail.com> Date: Thu, 14 Dec 2023 14:11:12 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: BUG #18248: Expression is always zero Content-Language: en-US To: rekgrpth@gmail.com, pgsql-bugs@lists.postgresql.org References: <18248-4250c882e2a8b8f6@postgresql.org> From: Alexander Lakhin In-Reply-To: <18248-4250c882e2a8b8f6@postgresql.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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