mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 11:49:27 +02:00
* Fix range check errors
git-svn-id: trunk@45387 -
This commit is contained in:
parent
2c8db3bb9e
commit
03f2c69d0d
@ -398,7 +398,7 @@ end;
|
|||||||
|
|
||||||
const digittab : shortstring = ('0123456789ABCDEF');
|
const digittab : shortstring = ('0123456789ABCDEF');
|
||||||
|
|
||||||
function lclinttohex (i:integer;digits:longint): ansistring;
|
function lclinttohex (i:longint;digits:longint): ansistring;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
SetLength(lclinttohex,4);
|
SetLength(lclinttohex,4);
|
||||||
@ -734,7 +734,7 @@ begin
|
|||||||
// NOTE: optimization note: memmove/memcpy equivalent could help here.
|
// NOTE: optimization note: memmove/memcpy equivalent could help here.
|
||||||
if hextet_idx < 8 then exit;
|
if hextet_idx < 8 then exit;
|
||||||
for tmpByte := 0 to 7 do
|
for tmpByte := 0 to 7 do
|
||||||
ip6.s6_addr16[tmpByte] := hextet_arr[tmpByte];
|
ip6.u6_addr16[tmpByte] := hextet_arr[tmpByte];
|
||||||
end;
|
end;
|
||||||
TryStrToHostAddr6 := True;
|
TryStrToHostAddr6 := True;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user