summaryrefslogtreecommitdiff
path: root/gcc/ada/a-chtgop.adb
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2014-07-30 14:21:09 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2014-07-30 14:21:09 +0000
commit4c1c7f3fba4ab7518567bec67fab42be3ce50e92 (patch)
tree44e4c774ab702d0af7e2bcd8781d4f2883d3d6e0 /gcc/ada/a-chtgop.adb
parent7ac8c2b1a35e66728bb39a826c61ca81b6367cad (diff)
downloadgcc-4c1c7f3fba4ab7518567bec67fab42be3ce50e92.tar.gz
2014-07-30 Robert Dewar <dewar@adacore.com>
* checks.adb, a-cihase.adb, a-cihase.ads, a-chtgop.adb, a-chtgop.ads, a-except.adb, a-except-2005.adb, a-cborse.adb, a-cborse.ads, a-exexda.adb, a-elchha.adb, exp_aggr.adb, a-cohase.adb: Minor reformatting. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213280 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/a-chtgop.adb')
-rw-r--r--gcc/ada/a-chtgop.adb5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/ada/a-chtgop.adb b/gcc/ada/a-chtgop.adb
index 2b3fbd333ff..dda5f2cccf7 100644
--- a/gcc/ada/a-chtgop.adb
+++ b/gcc/ada/a-chtgop.adb
@@ -209,6 +209,7 @@ package body Ada.Containers.Hash_Tables.Generic_Operations is
begin
Prev := HT.Buckets (Indx);
+
if Prev = X then
HT.Buckets (Indx) := Next (Prev);
HT.Length := HT.Length - 1;
@@ -235,11 +236,11 @@ package body Ada.Containers.Hash_Tables.Generic_Operations is
Free (X);
return;
end if;
+
Prev := Curr;
end loop;
+ end Delete_Node_At_Index;
- end Delete_Node_At_Index
-;
---------------------------
-- Delete_Node_Sans_Free --
---------------------------