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

From Tom Lane
Subject pgsql: Suppress -0 in the C field of lines computed by line_construct_p
Date
Msg-id E1VZnTi-0007K9-T1@gemulon.postgresql.org
Whole thread Raw
List 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(+)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: pgsql: Tweak "line" test to avoid negative zeros on some platforms
Next
From: Tom Lane
Date:
Subject: pgsql: Revert "Tweak "line" test to avoid negative zeros on some platfo