From: Tom Lane <tgl@sss.pgh.pa.us>
To: Teodor Sigaev <teodor@sigaev.ru>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: Fix behavior of ~> (cube, int) operator
Date: Sun, 21 Jan 2018 15:20:42 -0500
Message-ID: <10131.1516566042@sss.pgh.pa.us> (raw)
In-Reply-To: <E1eZbEj-0000Zi-Hl@gemulon.postgresql.org>
References: <E1eZbEj-0000Zi-Hl@gemulon.postgresql.org>
Teodor Sigaev <teodor@sigaev.ru> 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
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-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us, teodor@sigaev.ru
Subject: Re: pgsql: Fix behavior of ~> (cube, int) operator
In-Reply-To: <10131.1516566042@sss.pgh.pa.us>
References: <E1eZbEj-0000Zi-Hl@gemulon.postgresql.org> <10131.1516566042@sss.pgh.pa.us>
* 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