* use Str instead of IntToStr to avoid overload problems with unsigned types

git-svn-id: trunk@48400 -
This commit is contained in:
svenbarth 2021-01-24 14:57:24 +00:00
parent c3fd06b6b5
commit b446023e5b

View File

@ -18,7 +18,7 @@ end;
Class Function TORDINALHELPER.ToString(const AValue: TORDINALTYPE): string; overload; inline; static;
begin
Result:=IntToStr(AValue);
Str(AValue,Result);
end;
Class Function TORDINALHELPER.TryParse(const AString: string; out AValue: TORDINALTYPE): Boolean; inline; static;
@ -77,7 +77,7 @@ end;
Function TORDINALHELPER.ToString: string; overload; inline;
begin
Result:=IntToStr(Self);
Str(Self,Result);
end;
Function TORDINALHELPER.SetBit(const index: TORDINALBITINDEX) : TORDINALTYPE; inline;