mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-30 11:30:28 +02:00
Debugger: Stack.CountLimited, Ensure result is always set. Mentioned in issue #39886
(cherry picked from commit f63ba9cd3b
)
This commit is contained in:
parent
d8c23df73b
commit
289e8b9397
@ -6383,9 +6383,9 @@ end;
|
|||||||
function TIdeCallStack.CountLimited(ALimit: Integer): Integer;
|
function TIdeCallStack.CountLimited(ALimit: Integer): Integer;
|
||||||
begin
|
begin
|
||||||
case HasAtLeastCount(ALimit) of
|
case HasAtLeastCount(ALimit) of
|
||||||
nbUnknown: Result := 0;
|
|
||||||
nbTrue: Result := ALimit;
|
nbTrue: Result := ALimit;
|
||||||
nbFalse: Result := Count;
|
nbFalse: Result := Count;
|
||||||
|
else Result := 0;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user