public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-540] [Ada] Fix Forced sign flag in formatted string
@ 2022-05-17  8:29 Pierre-Marie de Rodat
  0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2022-05-17  8:29 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:5dbb65676f93504199c1200bfe4dc9f3bc72e2b2

commit r13-540-g5dbb65676f93504199c1200bfe4dc9f3bc72e2b2
Author: Marc Poulhiès <poulhies@adacore.com>
Date:   Tue Mar 22 10:08:46 2022 +0100

    [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:
---
 gcc/ada/libgnat/g-forstr.adb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-17  8:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-17  8:29 [gcc r13-540] [Ada] Fix Forced sign flag in formatted string Pierre-Marie de Rodat

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).