]> granicus.if.org Git - postgresql/commit
Suppress -0 in the C field of lines computed by line_construct_pts().
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 25 Oct 2013 19:55:15 +0000 (15:55 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 25 Oct 2013 19:55:15 +0000 (15:55 -0400)
commit43fe90f66a0b200f6c32507428349afb45f661ca
treef13e6951ec99a2c67feee09ba180622e30ca3554
parent1f7a47912af2206698d14650f2149fa951b8ce07
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.
src/backend/utils/adt/geo_ops.c