mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-19 06:19:32 +02:00
* fixed class cast errors in range checking code
git-svn-id: trunk@12720 -
This commit is contained in:
parent
7d459cf12a
commit
e672ead77a
@ -80,7 +80,7 @@ interface
|
||||
{ range checking? }
|
||||
if ((cs_check_range in current_settings.localswitches) or
|
||||
(cs_check_overflow in current_settings.localswitches)) and
|
||||
(tai_real_32bit(current_asmdata.asmlists[al_typedconsts].last).value=MathInf.Value) then
|
||||
(tai_real_32bit(current_procinfo.aktlocaldata.last).value=MathInf.Value) then
|
||||
Message(parser_e_range_check_error);
|
||||
end;
|
||||
|
||||
@ -94,7 +94,7 @@ interface
|
||||
{ range checking? }
|
||||
if ((cs_check_range in current_settings.localswitches) or
|
||||
(cs_check_overflow in current_settings.localswitches)) and
|
||||
(tai_real_64bit(current_asmdata.asmlists[al_typedconsts].last).value=MathInf.Value) then
|
||||
(tai_real_64bit(current_procinfo.aktlocaldata.last).value=MathInf.Value) then
|
||||
Message(parser_e_range_check_error);
|
||||
end;
|
||||
|
||||
@ -105,7 +105,7 @@ interface
|
||||
{ range checking? }
|
||||
if ((cs_check_range in current_settings.localswitches) or
|
||||
(cs_check_overflow in current_settings.localswitches)) and
|
||||
(tai_real_80bit(current_asmdata.asmlists[al_typedconsts].last).value=MathInf.Value) then
|
||||
(tai_real_80bit(current_procinfo.aktlocaldata.last).value=MathInf.Value) then
|
||||
Message(parser_e_range_check_error);
|
||||
end;
|
||||
{$ifdef cpufloat128}
|
||||
@ -116,7 +116,7 @@ interface
|
||||
{ range checking? }
|
||||
if ((cs_check_range in current_settings.localswitches) or
|
||||
(cs_check_overflow in current_settings.localswitches)) and
|
||||
(tai_real_128bit(current_asmdata.asmlists[al_typedconsts].last).value=MathInf.Value) then
|
||||
(tai_real_128bit(current_procinfo.aktlocaldata.last).value=MathInf.Value) then
|
||||
Message(parser_e_range_check_error);
|
||||
end;
|
||||
{$endif cpufloat128}
|
||||
|
Loading…
Reference in New Issue
Block a user