Re: BUG #12885: The result of casting a double to an integer depends on the database version - Mailing list pgsql-bugs

From Pedro Gimeno
Subject Re: BUG #12885: The result of casting a double to an integer depends on the database version
Date
Msg-id 55129971.2070208@personal.formauri.es
Whole thread Raw
In response to Re: BUG #12885: The result of casting a double to an integer depends on the database version  (Michael Paquier <michael.paquier@gmail.com>)
List pgsql-bugs
Michael Paquier wrote, On 2015-03-25 04:26:
> copysign is not that portable, at least it is not in the MSVC world.
> So as a patch you would get something like the attached with what you
> wrote.

The only point of using copysign there was to deal with a negative zero
corner case. The attached removes copysign from the test program too,
relying instead on sprintf outputting the sign of minus zero when available.


Attachment

pgsql-bugs by date:

Previous
From: Pedro Gimeno
Date:
Subject: Re: BUG #12885: The result of casting a double to an integer depends on the database version
Next
From: Jaimin Pan
Date:
Subject: [Report Bug With Patch] Rel Cache Bug