mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 04:59:26 +02:00
* fix for 15597. Added returnvalue to early-out exit().
git-svn-id: trunk@14818 -
This commit is contained in:
parent
f8b8e3f48d
commit
2c149e805a
@ -174,7 +174,7 @@ function TFPList.Expand: TFPList;
|
||||
var
|
||||
IncSize : Longint;
|
||||
begin
|
||||
if FCount < FCapacity then exit;
|
||||
if FCount < FCapacity then exit(self);
|
||||
IncSize := 4;
|
||||
if FCapacity > 3 then IncSize := IncSize + 4;
|
||||
if FCapacity > 8 then IncSize := IncSize+8;
|
||||
|
Loading…
Reference in New Issue
Block a user