* Fixed IntToHex in case of (0,0)

git-svn-id: trunk@16026 -
This commit is contained in:
michael 2010-09-20 07:46:04 +00:00
parent 22bb35813e
commit b93ab63038

View File

@ -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