Commit d878b2c9 by Claire Dross Committed by Pierre-Marie de Rodat

[Ada] Use correct subtype for call to Last in formal vectors

2019-12-12  Claire Dross  <dross@adacore.com>

gcc/ada/

	* libgnat/a-cofove.adb, libgnat/a-cfinve.adb (Find_Index): Use
	Extended_Index for call to Last.

From-SVN: r279284
parent e16c6cc3
2019-12-12 Claire Dross <dross@adacore.com>
* libgnat/a-cofove.adb, libgnat/a-cfinve.adb (Find_Index): Use
Extended_Index for call to Last.
2019-12-12 Gary Dismukes <dismukes@adacore.com>
* sem_ch3.adb, sem_util.adb: Minor reformatting.
......
......@@ -458,7 +458,7 @@ is
Index : Index_Type := Index_Type'First) return Extended_Index
is
K : Count_Type;
Last : constant Index_Type := Last_Index (Container);
Last : constant Extended_Index := Last_Index (Container);
begin
K := Capacity_Range (Int (Index) - Int (No_Index));
......
......@@ -379,7 +379,7 @@ is
Index : Index_Type := Index_Type'First) return Extended_Index
is
K : Count_Type;
Last : constant Index_Type := Last_Index (Container);
Last : constant Extended_Index := Last_Index (Container);
begin
K := Capacity_Range (Int (Index) - Int (No_Index));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment