[Ada] Fix Forced sign flag in formatted string

Fix the Forced sign flag that is incorrectly ignored for scientific
notation and shortest representation.

gcc/ada/

	* libgnat/g-forstr.adb (Is_Number): Add scientific notation and
	shortest representation.
This commit is contained in:
Marc Poulhiès 2022-03-22 10:08:46 +01:00 committed by Pierre-Marie de Rodat
parent 42fe7c9a80
commit 5dbb65676f

View file

@ -58,7 +58,7 @@ package body GNAT.Formatted_String is
type Sign_Kind is (Neg, Zero, Pos);
subtype Is_Number is F_Kind range Decimal_Int .. Decimal_Float;
subtype Is_Number is F_Kind range Decimal_Int .. Shortest_Decimal_Float_Up;
type F_Sign is (If_Neg, Forced, Space) with Default_Value => If_Neg;