[fpc-pascal] SIGFPE with SameValue()

Torsten Bonde Christiansen tc at epidata.info
Thu May 10 11:26:20 CEST 2012


On 2012-05-10 11:16, Jonas Maebe wrote:
>
> Torsten Bonde Christiansen wrote on Thu, 10 May 2012:
>
>> On 2012-05-10 10:45, t.wieckowski at gmail.com wrote:
>>> it seams that MaxFloat get MaxDouble (FPC_HAS_TYPE_DOUBLE is defined)
>>> but SameValue uses as Single when overload.
>>> Works with SameValue(double(a),double(b),double(0)).
>>
>> How can that be, since I use Extended as type?
>
> http://bugs.freepascal.org/view.php?id=21199
Thanks. I can see that addid 0.0 to SameValue solves the problem. :)

Regards,
Torsten.



More information about the fpc-pascal mailing list