From: Marc Poulhiès Date: Tue, 22 Mar 2022 09:08:46 +0000 (+0100) Subject: [Ada] Fix Forced sign flag in formatted string X-Git-Tag: basepoints/gcc-14~6667 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5dbb65676f93504199c1200bfe4dc9f3bc72e2b2;p=thirdparty%2Fgcc.git [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. --- diff --git a/gcc/ada/libgnat/g-forstr.adb b/gcc/ada/libgnat/g-forstr.adb index 8ce8d1cffd3..8821de6f280 100644 --- a/gcc/ada/libgnat/g-forstr.adb +++ b/gcc/ada/libgnat/g-forstr.adb @@ -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;