X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gcc%2Fada%2Fs-htable.adb;h=b8116f9437d4f8a4edd5d27246ac66479800de55;hb=4d8cd3a26294ce35abb17668eac2b6c38dd23bd0;hp=e2b5235f0549ebb99abc0e790f36c8778ac9714e;hpb=b209d8dc611f3cd793491b8490522bdaf819622b;p=platform%2Fupstream%2Fgcc48.git diff --git a/gcc/ada/s-htable.adb b/gcc/ada/s-htable.adb index e2b5235..b8116f9 100644 --- a/gcc/ada/s-htable.adb +++ b/gcc/ada/s-htable.adb @@ -6,7 +6,7 @@ -- -- -- B o d y -- -- -- --- Copyright (C) 1995-2011, AdaCore -- +-- Copyright (C) 1995-2012, AdaCore -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- @@ -62,7 +62,6 @@ package body System.HTable is begin Elmt := Table (Hash (K)); - loop if Elmt = Null_Ptr then return Null_Ptr; @@ -96,10 +95,10 @@ package body System.HTable is begin if not Iterator_Started then return Null_Ptr; + else + Iterator_Ptr := Next (Iterator_Ptr); + return Get_Non_Null; end if; - - Iterator_Ptr := Next (Iterator_Ptr); - return Get_Non_Null; end Get_Next; ------------------ @@ -183,7 +182,6 @@ package body System.HTable is procedure Set (E : Elmt_Ptr) is Index : Header_Num; - begin Index := Hash (Get_Key (E)); Set_Next (E, Table (Index));