Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1edM6o-0001Sh-Ac for pgsql-committers@arkaria.postgresql.org; Sun, 21 Jan 2018 20:20:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1edM6l-0001xy-OC for pgsql-committers@arkaria.postgresql.org; Sun, 21 Jan 2018 20:20:51 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1edM6l-0001xo-GF for pgsql-committers@lists.postgresql.org; Sun, 21 Jan 2018 20:20:51 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1edM6e-0002w6-H2 for pgsql-committers@postgresql.org; Sun, 21 Jan 2018 20:20:50 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w0LKKgCr010132; Sun, 21 Jan 2018 15:20:43 -0500 From: Tom Lane To: Teodor Sigaev cc: pgsql-committers@postgresql.org Subject: Re: pgsql: Fix behavior of ~> (cube, int) operator In-reply-to: References: Comments: In-reply-to Teodor Sigaev message dated "Thu, 11 Jan 2018 11:41:33 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <10130.1516566042.1@sss.pgh.pa.us> Date: Sun, 21 Jan 2018 15:20:42 -0500 Message-ID: <10131.1516566042@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Teodor Sigaev writes: > Fix behavior of ~> (cube, int) operator This patch has caused Coverity to complain, correctly AFAICS, about dead code in cube_coord_llur in the back branches: 1628 /* Inverse value if needed */ 1629 if (inverse) >>> CID 1463943: Control flow issues (DEADCODE) >>> Execution cannot reach this statement: "result = -result;". 1630 result = -result; 1631 1632 PG_RETURN_FLOAT8(result); Seems to be due to sloppy division of changes between f50c80dbb (which was not back-patched) and 563a053bd. Please fix. regards, tom lane