[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:
parent
42fe7c9a80
commit
5dbb65676f
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue