|
@@ -77,8 +77,7 @@ interface
|
|
|
begin
|
|
|
current_procinfo.aktlocaldata.concat(Tai_real_32bit.Create(ts32real(value_real)));
|
|
|
{ range checking? }
|
|
|
- if ((cs_check_range in current_settings.localswitches) or
|
|
|
- (cs_check_overflow in current_settings.localswitches)) and
|
|
|
+ if floating_point_range_check_error and
|
|
|
(tai_real_32bit(current_procinfo.aktlocaldata.last).value=MathInf.Value) then
|
|
|
Message(parser_e_range_check_error);
|
|
|
end;
|
|
@@ -91,8 +90,7 @@ interface
|
|
|
current_procinfo.aktlocaldata.concat(Tai_real_64bit.Create(ts64real(value_real)));
|
|
|
|
|
|
{ range checking? }
|
|
|
- if ((cs_check_range in current_settings.localswitches) or
|
|
|
- (cs_check_overflow in current_settings.localswitches)) and
|
|
|
+ if floating_point_range_check_error and
|
|
|
(tai_real_64bit(current_procinfo.aktlocaldata.last).value=MathInf.Value) then
|
|
|
Message(parser_e_range_check_error);
|
|
|
end;
|
|
@@ -102,8 +100,7 @@ interface
|
|
|
current_procinfo.aktlocaldata.concat(Tai_real_80bit.Create(value_real,tfloatdef(resultdef).size));
|
|
|
|
|
|
{ range checking? }
|
|
|
- if ((cs_check_range in current_settings.localswitches) or
|
|
|
- (cs_check_overflow in current_settings.localswitches)) and
|
|
|
+ if floating_point_range_check_error and
|
|
|
(tai_real_80bit(current_procinfo.aktlocaldata.last).value=MathInf.Value) then
|
|
|
Message(parser_e_range_check_error);
|
|
|
end;
|
|
@@ -113,8 +110,7 @@ interface
|
|
|
current_procinfo.aktlocaldata.concat(Tai_real_128bit.Create(value_real));
|
|
|
|
|
|
{ range checking? }
|
|
|
- if ((cs_check_range in current_settings.localswitches) or
|
|
|
- (cs_check_overflow in current_settings.localswitches)) and
|
|
|
+ if floating_point_range_check_error and
|
|
|
(tai_real_128bit(current_procinfo.aktlocaldata.last).value=MathInf.Value) then
|
|
|
Message(parser_e_range_check_error);
|
|
|
end;
|