mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-03 09:58:26 +02:00
* avoid range check error in TVMTBuilder.intf_optimize_vtbls by early bailing out if a class has no interfaces
This commit is contained in:
parent
88ab9576b1
commit
c3a3cfe80f
@ -680,6 +680,8 @@ implementation
|
||||
cji: boolean;
|
||||
begin
|
||||
ImplIntfCount:=_class.ImplementedInterfaces.count;
|
||||
if ImplIntfCount=0 then
|
||||
exit;
|
||||
SetLength(compats,ImplIntfCount);
|
||||
SetLength(aequals,ImplIntfCount);
|
||||
SetLength(impls,ImplIntfCount);
|
||||
|
Loading…
Reference in New Issue
Block a user