From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: In dpow(), remove redundant check for whether y is an integer. |
Date: | 2020-06-16 15:09:49 |
Message-ID: | E1jlDDh-00037n-DO@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
In dpow(), remove redundant check for whether y is an integer.
I failed to notice that we don't really need to check for y being an
integer in the code path where x = -inf; we already did.
Also make some further cosmetic rearrangements in that spot in hopes
of dodging the seeming compiler bug that buildfarm member fossa is
hitting. And be consistent about declaring variables as "float8"
not "double", since the pre-existing variables in this function are
like that.
Discussion: https://postgr.es/m/E1jkyFX-0005RR-1Q@gemulon.postgresql.org
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/400f16937328d50a7e8d7f0d158f7c92be1da45a
Modified Files
--------------
src/backend/utils/adt/float.c | 21 ++++++++++-----------
1 file changed, 10 insertions(+), 11 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2020-06-16 15:29:01 | pgsql: Fix file reference in nls.mk |
Previous Message | Thomas Munro | 2020-06-16 05:41:26 | pgsql: Remove useless variable. |