mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-10 13:29:16 +02:00
* use Str instead of IntToStr to avoid overload problems with unsigned types
git-svn-id: trunk@48400 -
This commit is contained in:
parent
c3fd06b6b5
commit
b446023e5b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user