mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-06 13:50:20 +02:00
* Fixed IntToHex in case of (0,0)
git-svn-id: trunk@16026 -
This commit is contained in:
parent
22bb35813e
commit
b93ab63038
@ -753,6 +753,8 @@ const
|
||||
function IntToHex(Value: integer; Digits: integer): string;
|
||||
var i: integer;
|
||||
begin
|
||||
If Digits=0 then
|
||||
Digits:=1;
|
||||
SetLength(result, digits);
|
||||
for i := 0 to digits - 1 do
|
||||
begin
|
||||
@ -768,6 +770,8 @@ end ;
|
||||
function IntToHex(Value: int64; Digits: integer): string;
|
||||
var i: integer;
|
||||
begin
|
||||
If Digits=0 then
|
||||
Digits:=1;
|
||||
SetLength(result, digits);
|
||||
for i := 0 to digits - 1 do
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user