mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 19:59:37 +02:00
Debugger: Stack.CountLimited, Ensure result is always set. Mentioned in issue #39886
This commit is contained in:
parent
88ad421ae1
commit
f63ba9cd3b
@ -7575,9 +7575,9 @@ end;
|
||||
function TIdeCallStack.CountLimited(ALimit: Integer): Integer;
|
||||
begin
|
||||
case HasAtLeastCount(ALimit) of
|
||||
nbUnknown: Result := 0;
|
||||
nbTrue: Result := ALimit;
|
||||
nbFalse: Result := Count;
|
||||
else Result := 0;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user