mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-23 04:50:51 +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;
|
Class Function TORDINALHELPER.ToString(const AValue: TORDINALTYPE): string; overload; inline; static;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
Result:=IntToStr(AValue);
|
Str(AValue,Result);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
Class Function TORDINALHELPER.TryParse(const AString: string; out AValue: TORDINALTYPE): Boolean; inline; static;
|
Class Function TORDINALHELPER.TryParse(const AString: string; out AValue: TORDINALTYPE): Boolean; inline; static;
|
||||||
@ -77,7 +77,7 @@ end;
|
|||||||
Function TORDINALHELPER.ToString: string; overload; inline;
|
Function TORDINALHELPER.ToString: string; overload; inline;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
Result:=IntToStr(Self);
|
Str(Self,Result);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
Function TORDINALHELPER.SetBit(const index: TORDINALBITINDEX) : TORDINALTYPE; inline;
|
Function TORDINALHELPER.SetBit(const index: TORDINALBITINDEX) : TORDINALTYPE; inline;
|
||||||
|
Loading…
Reference in New Issue
Block a user