Suppress -0 in the C field of lines computed by line_construct_pts().
Tom Lane <tgl@sss.pgh.pa.us>
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
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/geo_ops.c | modified | +3 −0 |