mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 01:29:21 +02:00
* Fix from Bart Broersma, small optimization (bug ID 37061)
git-svn-id: trunk@45355 -
This commit is contained in:
parent
ae91ff00b9
commit
0333677ac3
@ -597,7 +597,7 @@ begin
|
||||
begin
|
||||
// if we saw a collapsed sequence before, or if we've already
|
||||
// seen 8 hextets.
|
||||
if (coll_zero_seen = True) or (hextet_idx > 7) then exit;
|
||||
if coll_zero_seen or (hextet_idx > 7) then exit;
|
||||
coll_zero_seen := True;
|
||||
coll_start_idx := hextet_idx;
|
||||
Inc(hextet_idx);
|
||||
@ -670,7 +670,7 @@ begin
|
||||
|
||||
// finish line is in sight. if we have a collapsed-zeroes sequence
|
||||
// then we must fill that in now.
|
||||
if coll_zero_seen = True then
|
||||
if coll_zero_seen then
|
||||
begin
|
||||
for tmpByte := 0 to coll_start_idx do
|
||||
StrToHostAddr6.s6_addr16[tmpByte] := hextet_arr[tmpByte];
|
||||
|
Loading…
Reference in New Issue
Block a user