mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-11 17:06:14 +02:00
* tohexstring calls inttohex instead of hexstr. Hexstr has fixed number of
digits, inttohex a minimum number. Mantis #35015 git-svn-id: trunk@41268 -
This commit is contained in:
parent
8b956a580e
commit
93fcce4ba1
@ -49,13 +49,13 @@ Function TORDINALHELPER.ToHexString(const AMinDigits: Integer): string;
|
|||||||
overload; inline;
|
overload; inline;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
Result:=HexStr(Self,AMinDigits);
|
Result:=IntToHex(Self,AMinDigits);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
Function TORDINALHELPER.ToHexString: string; overload; inline;
|
Function TORDINALHELPER.ToHexString: string; overload; inline;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
Result:=HexStr(Self,SizeOf(TORDINALTYPE)*2);
|
Result:=IntToHex(Self,SizeOf(TORDINALTYPE)*2);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
Function TORDINALHELPER.ToSingle: Single; inline;
|
Function TORDINALHELPER.ToSingle: Single; inline;
|
||||||
|
Loading…
Reference in New Issue
Block a user