diff mbox series

[Ada] Fix PR ada/87396

Message ID 4448091.Tj51xlamih@polaris
State New
Headers show
Series [Ada] Fix PR ada/87396 | expand

Commit Message

Eric Botcazou Sept. 24, 2018, 10:29 a.m. UTC
Enumeration types are unsigned in Ada so use 'unsigned char' instead of 'char' 
for mapping Attribute_Id.

Tested x86-64/Linux, applied on the mainline.


2018-09-24  Eric Botcazou  <ebotcazou@adacore.com>

	PR ada/87396
	* fe.h (Get_Attribute_Definition_Clause): Use 'unsigned char' instead
	of 'char' as the type of the second parameter.
diff mbox series

Patch

Index: fe.h
===================================================================
--- fe.h	(revision 264466)
+++ fe.h	(working copy)
@@ -85,7 +85,7 @@  extern void Set_RM_Size			(Entity_Id, Ui
 extern Boolean Is_Entity_Name		(Node_Id);
 
 #define Get_Attribute_Definition_Clause einfo__get_attribute_definition_clause
-extern Node_Id Get_Attribute_Definition_Clause (Entity_Id, char);
+extern Node_Id Get_Attribute_Definition_Clause (Entity_Id, unsigned char);
 
 /* errout: */