diff options
author | svenbarth <svenbarth@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2021-01-24 14:57:24 +0000 |
---|---|---|
committer | svenbarth <svenbarth@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2021-01-24 14:57:24 +0000 |
commit | be77981ade335526f96dbfcaa2e377ea215ab7d1 (patch) | |
tree | 16374ee96bbc7cc0df1553393d8a24bb79c13f0e /rtl/objpas | |
parent | ca82147499de0ae25fc124420a73116f4e21299e (diff) | |
download | fpc-be77981ade335526f96dbfcaa2e377ea215ab7d1.tar.gz |
* use Str instead of IntToStr to avoid overload problems with unsigned types
git-svn-id: https://svn.freepascal.org/svn/fpc/trunk@48400 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'rtl/objpas')
-rw-r--r-- | rtl/objpas/sysutils/syshelpo.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rtl/objpas/sysutils/syshelpo.inc b/rtl/objpas/sysutils/syshelpo.inc index 2f6efc6994..497d0ef508 100644 --- a/rtl/objpas/sysutils/syshelpo.inc +++ b/rtl/objpas/sysutils/syshelpo.inc @@ -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; |