Skip to content
Snippets Groups Projects
Commit 027ed68c authored by Piotr Trojanek's avatar Piotr Trojanek Committed by Pierre-Marie de Rodat
Browse files

[Ada] Refine types of variables for parsing formal object declarations

gcc/ada/

	* par-ch12.adb (P_Formal_Object_Declarations): Refine types to
	Pos.
parent 55337de8
No related merge requests found
......@@ -423,12 +423,12 @@ package body Ch12 is
procedure P_Formal_Object_Declarations (Decls : List_Id) is
Decl_Node : Node_Id;
Ident : Nat;
Ident : Pos;
Not_Null_Present : Boolean := False;
Num_Idents : Nat;
Num_Idents : Pos;
Scan_State : Saved_Scan_State;
Idents : array (Int range 1 .. 4096) of Entity_Id;
Idents : array (Pos range 1 .. 4096) of Entity_Id;
-- This array holds the list of defining identifiers. The upper bound
-- of 4096 is intended to be essentially infinite, and we do not even
-- bother to check for it being exceeded.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment