public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-899] [Ada] Bug fix in "=" function of formal doubly linked list
@ 2022-06-01  8:46 Pierre-Marie de Rodat
  0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2022-06-01  8:46 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:ce0bbf28fb11b75ebc7d0140ccc38857c03303d9

commit r13-899-gce0bbf28fb11b75ebc7d0140ccc38857c03303d9
Author: Julien Bortolussi <bortolussi@adacore.com>
Date:   Fri May 6 16:48:31 2022 +0200

    [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.

Diff:
---
 gcc/ada/libgnat/a-cfdlli.adb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/ada/libgnat/a-cfdlli.adb b/gcc/ada/libgnat/a-cfdlli.adb
index 383d031d715..7b23ad79232 100644
--- a/gcc/ada/libgnat/a-cfdlli.adb
+++ b/gcc/ada/libgnat/a-cfdlli.adb
@@ -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;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-06-01  8:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-01  8:46 [gcc r13-899] [Ada] Bug fix in "=" function of formal doubly linked list Pierre-Marie de Rodat

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).