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

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 43fe90f66a0b200f6c32507428349afb45f661ca
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2013-10-25T19:55:15Z
Releases: 9.4.0
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.

Files

PathChange+/−
src/backend/utils/adt/geo_ops.c modified +3 −0