Avoid range error in tbitset.clear method

This commit is contained in:
Pierre Muller 2025-03-21 09:26:57 +00:00
parent e1478e27b3
commit 04a31f8be2

View File

@ -3258,7 +3258,8 @@ end;
procedure tbitset.clear;
begin
fillchar(fdata[0],length(fdata),0);
if assigned(fdata) then
fillchar(fdata[0],length(fdata),0);
end;