projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2977b00
)
[Ada] Bug fix in "=" function of formal doubly linked list
author
Julien Bortolussi
<bortolussi@adacore.com>
Fri, 6 May 2022 14:48:31 +0000
(16:48 +0200)
committer
Pierre-Marie de Rodat
<derodat@adacore.com>
Wed, 1 Jun 2022 08:43:19 +0000
(08:43 +0000)
Correction of a typo regarding indexes.
gcc/ada/
* libgnat/a-cfdlli.adb ("="): Make the function properly loop
over the right list.
gcc/ada/libgnat/a-cfdlli.adb
patch
|
blob
|
history
diff --git
a/gcc/ada/libgnat/a-cfdlli.adb
b/gcc/ada/libgnat/a-cfdlli.adb
index
383d031
..
7b23ad7
100644
(file)
--- 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 :=
Lef
t.First;
+ RI :=
Righ
t.First;
while LI /= 0 loop
- if Left.Nodes (LI).Element /= Right.Nodes (
L
I).Element then
+ if Left.Nodes (LI).Element /= Right.Nodes (
R
I).Element then
return False;
end if;