[Ada] Bug fix in "=" function of formal doubly linked list
Correction of a typo regarding indexes. gcc/ada/ * libgnat/a-cfdlli.adb ("="): Make the function properly loop over the right list.
This commit is contained in:
parent
2977b006df
commit
ce0bbf28fb
1 changed files with 2 additions and 2 deletions
|
@ -68,9 +68,9 @@ is
|
||||||
end if;
|
end if;
|
||||||
|
|
||||||
LI := Left.First;
|
LI := Left.First;
|
||||||
RI := Left.First;
|
RI := Right.First;
|
||||||
while LI /= 0 loop
|
while LI /= 0 loop
|
||||||
if Left.Nodes (LI).Element /= Right.Nodes (LI).Element then
|
if Left.Nodes (LI).Element /= Right.Nodes (RI).Element then
|
||||||
return False;
|
return False;
|
||||||
end if;
|
end if;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue