mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-17 13:59:29 +02:00
* abstractrecorddef.contains_float_field should search recursively, resolves #27580
git-svn-id: trunk@30168 -
This commit is contained in:
parent
b0d8f487c1
commit
f0984fb628
@ -3991,9 +3991,15 @@ implementation
|
||||
begin
|
||||
if tsym(symtable.symlist[i]).typ<>fieldvarsym then
|
||||
continue;
|
||||
if assigned(tfieldvarsym(symtable.symlist[i]).vardef) and
|
||||
tstoreddef(tfieldvarsym(symtable.symlist[i]).vardef).is_fpuregable then
|
||||
exit;
|
||||
if assigned(tfieldvarsym(symtable.symlist[i]).vardef) then
|
||||
begin
|
||||
if tstoreddef(tfieldvarsym(symtable.symlist[i]).vardef).is_fpuregable then
|
||||
exit;
|
||||
{ search recursively }
|
||||
if (tstoreddef(tfieldvarsym(symtable.symlist[i]).vardef).typ=recorddef) and
|
||||
(tabstractrecorddef(tfieldvarsym(symtable.symlist[i]).vardef).contains_float_field) then
|
||||
exit;
|
||||
end;
|
||||
end;
|
||||
result:=false;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user