mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 11:08:02 +02:00
* fixed the support for infinity and nan float literal values in the webassembly
llvm-mc asm writer git-svn-id: trunk@49213 -
This commit is contained in:
parent
d53b17cadc
commit
4f828929a3
@ -210,11 +210,11 @@ implementation
|
||||
if (exponent=(1 shl exponent_bits)-1) then
|
||||
begin
|
||||
if fraction=0 then
|
||||
result:=result+'inf'
|
||||
result:=result+'infinity'
|
||||
else
|
||||
begin
|
||||
result:=result+'nan';
|
||||
if fraction<>((int64(1) shl fraction_bits)-1) then
|
||||
if fraction<>(int64(1) shl (fraction_bits-1)) then
|
||||
result:=result+':0x'+HexStr(fraction,fraction_hexdigits);
|
||||
end;
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user