Re: [fpc-pascal] SIGFPE with SameValue()

2012-05-10 Thread Torsten Bonde Christiansen
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.wieckow...@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),dou

Re: [fpc-pascal] SIGFPE with SameValue()

2012-05-10 Thread Jonas Maebe
Torsten Bonde Christiansen wrote on Thu, 10 May 2012: On 2012-05-10 10:45, t.wieckow...@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, sin

Re: [fpc-pascal] SIGFPE with SameValue()

2012-05-10 Thread Torsten Bonde Christiansen
On 2012-05-10 10:45, t.wieckow...@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)). best regards Tomek ___ fpc-pascal

Re: [fpc-pascal] SIGFPE with SameValue()

2012-05-10 Thread t . wieckowski
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)). best regards Tomek ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://l

[fpc-pascal] SIGFPE with SameValue()

2012-05-09 Thread Torsten Bonde Christiansen
Hi List. I have discovered the following strange bug/problem. Please check out the following program and tell me which part is right and which is wrong, or perhaps what i'm doing wrong in this case. program project1; {$mode objfpc}{$H+} uses math; var a,b: extended; begin if SameValu