* Merging revisions r45387 from trunk:

------------------------------------------------------------------------
    r45387 | michael | 2020-05-16 17:00:00 +0200 (Sat, 16 May 2020) | 1 line
    
    * Fix range check errors
    ------------------------------------------------------------------------

git-svn-id: branches/fixes_3_2@46573 -
This commit is contained in:
michael 2020-08-23 09:08:48 +00:00
parent 690f184324
commit 2413b48e10

View File

@ -398,7 +398,7 @@ end;
const digittab : shortstring = ('0123456789ABCDEF');
function lclinttohex (i:integer;digits:longint): ansistring;
function lclinttohex (i:longint;digits:longint): ansistring;
begin
SetLength(lclinttohex,4);
@ -734,7 +734,7 @@ begin
// NOTE: optimization note: memmove/memcpy equivalent could help here.
if hextet_idx < 8 then exit;
for tmpByte := 0 to 7 do
ip6.s6_addr16[tmpByte] := hextet_arr[tmpByte];
ip6.u6_addr16[tmpByte] := hextet_arr[tmpByte];
end;
TryStrToHostAddr6 := True;
end;