pgsql: Suppress -0 in the C field of lines computed by line_construct_p

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Suppress -0 in the C field of lines computed by line_construct_p
Date: 2013-10-25 19:55:26
Message-ID: E1VZnTi-0007K9-T1@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Suppress -0 in the C field of lines computed by line_construct_pts().

It's not entirely clear why some PPC machines are generating -0 here, since
the underlying computation should be exactly 0 - 0. Perhaps there's some
wider-than-nominal-precision calculations happening? Anyway, the best way
to avoid platform-dependent results seems to be to explicitly reset -0 to
regular zero.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/43fe90f66a0b200f6c32507428349afb45f661ca

Modified Files
--------------
src/backend/utils/adt/geo_ops.c | 3 +++
1 file changed, 3 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2013-10-25 21:42:35 pgsql: Improve pqexpbuffer.c to use modern vsnprintf implementations ef
Previous Message Peter Eisentraut 2013-10-25 19:19:46 Re: pgsql: Tweak "line" test to avoid negative zeros on some platforms