mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-07-30 16:26:16 +02:00
* range checking is already performed in pass_typecheck
This commit is contained in:
parent
dbf6527508
commit
f7bfa0e426
@ -108,10 +108,6 @@ interface
|
|||||||
aitrealconst_s32bit :
|
aitrealconst_s32bit :
|
||||||
begin
|
begin
|
||||||
current_procinfo.aktlocaldata.concat(tai_realconst.create_s32real(ts32real(value_real)));
|
current_procinfo.aktlocaldata.concat(tai_realconst.create_s32real(ts32real(value_real)));
|
||||||
{ range checking? }
|
|
||||||
if floating_point_range_check_error and
|
|
||||||
(tai_realconst(current_procinfo.aktlocaldata.last).value.s32val=MathInf.Value) then
|
|
||||||
Message(parser_e_range_check_error);
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
aitrealconst_s64bit :
|
aitrealconst_s64bit :
|
||||||
@ -120,31 +116,16 @@ interface
|
|||||||
current_procinfo.aktlocaldata.concat(tai_realconst.create_s64real_hiloswapped(ts64real(value_real)))
|
current_procinfo.aktlocaldata.concat(tai_realconst.create_s64real_hiloswapped(ts64real(value_real)))
|
||||||
else
|
else
|
||||||
current_procinfo.aktlocaldata.concat(tai_realconst.create_s64real(ts64real(value_real)));
|
current_procinfo.aktlocaldata.concat(tai_realconst.create_s64real(ts64real(value_real)));
|
||||||
|
|
||||||
{ range checking? }
|
|
||||||
if floating_point_range_check_error and
|
|
||||||
(tai_realconst(current_procinfo.aktlocaldata.last).value.s64val=MathInf.Value) then
|
|
||||||
Message(parser_e_range_check_error);
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
aitrealconst_s80bit :
|
aitrealconst_s80bit :
|
||||||
begin
|
begin
|
||||||
current_procinfo.aktlocaldata.concat(tai_realconst.create_s80real(value_real,tfloatdef(resultdef).size));
|
current_procinfo.aktlocaldata.concat(tai_realconst.create_s80real(value_real,tfloatdef(resultdef).size));
|
||||||
|
|
||||||
{ range checking? }
|
|
||||||
if floating_point_range_check_error and
|
|
||||||
(tai_realconst(current_procinfo.aktlocaldata.last).value.s80val=MathInf.Value) then
|
|
||||||
Message(parser_e_range_check_error);
|
|
||||||
end;
|
end;
|
||||||
{$ifdef cpufloat128}
|
{$ifdef cpufloat128}
|
||||||
aitrealconst_s128bit :
|
aitrealconst_s128bit :
|
||||||
begin
|
begin
|
||||||
current_procinfo.aktlocaldata.concat(tai_realconst.create_s128real(value_real));
|
current_procinfo.aktlocaldata.concat(tai_realconst.create_s128real(value_real));
|
||||||
|
|
||||||
{ range checking? }
|
|
||||||
if floating_point_range_check_error and
|
|
||||||
(tai_realconst(current_procinfo.aktlocaldata.last).value.s128val=MathInf.Value) then
|
|
||||||
Message(parser_e_range_check_error);
|
|
||||||
end;
|
end;
|
||||||
{$endif cpufloat128}
|
{$endif cpufloat128}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user