[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:
Julien Bortolussi 2022-05-06 16:48:31 +02:00 committed by Pierre-Marie de Rodat
parent 2977b006df
commit ce0bbf28fb

View file

@ -68,9 +68,9 @@ is
end if;
LI := Left.First;
RI := Left.First;
RI := Right.First;
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;
end if;