mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 08:49:25 +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
|
begin
|
||||||
if tsym(symtable.symlist[i]).typ<>fieldvarsym then
|
if tsym(symtable.symlist[i]).typ<>fieldvarsym then
|
||||||
continue;
|
continue;
|
||||||
if assigned(tfieldvarsym(symtable.symlist[i]).vardef) and
|
if assigned(tfieldvarsym(symtable.symlist[i]).vardef) then
|
||||||
tstoreddef(tfieldvarsym(symtable.symlist[i]).vardef).is_fpuregable then
|
begin
|
||||||
exit;
|
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;
|
end;
|
||||||
result:=false;
|
result:=false;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user