mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-19 13:29:29 +02:00
* Avoid promotion to 64 bits due to mixing signed and unsigned expressions.
git-svn-id: trunk@28510 -
This commit is contained in:
parent
26d53cfa55
commit
6807812997
@ -1466,7 +1466,7 @@ type
|
|||||||
k := 0;
|
k := 0;
|
||||||
if (hx < $00100000) then { x < 2**-1022 }
|
if (hx < $00100000) then { x < 2**-1022 }
|
||||||
begin
|
begin
|
||||||
if (((hx and $7fffffff) or lx)=0) then
|
if (((hx and $7fffffff) or longint(lx))=0) then
|
||||||
exit(-two54/zero); { log(+-0)=-inf }
|
exit(-two54/zero); { log(+-0)=-inf }
|
||||||
if (hx<0) then
|
if (hx<0) then
|
||||||
exit((d-d)/zero); { log(-#) = NaN }
|
exit((d-d)/zero); { log(-#) = NaN }
|
||||||
|
Loading…
Reference in New Issue
Block a user