Without a copy in most cases

This commit is contained in:
Alligator-1 2024-06-30 22:04:42 +05:00
parent bdef7af09e
commit f60bed0823

View File

@ -368,8 +368,9 @@ begin
hs:=Args[doarg].VVariant^; hs:=Args[doarg].VVariant^;
Index:=Length(hs); Index:=Length(hs);
If (Prec<>-1) and (Index>Prec) then If (Prec<>-1) and (Index>Prec) then
Index:=Prec; ToAdd:=Copy(hs,1,Prec)
ToAdd:=Copy(hs,1,Index); else
ToAdd:=hs;
end; end;
'P' : Begin 'P' : Begin
CheckArg(vtpointer,true); CheckArg(vtpointer,true);