From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1914) id 73EC83857011; Tue, 5 Oct 2021 08:23:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 73EC83857011 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Pierre-Marie de Rodat To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-4164] [Ada] Minor code clean-up X-Act-Checkin: gcc X-Git-Author: Pascal Obry X-Git-Refname: refs/heads/master X-Git-Oldrev: 8c77e8b09ef271c10f89161591e8eb162c579f4b X-Git-Newrev: b2b2fe2d679dec37e30b86c73fefa9d7e920f4ca Message-Id: <20211005082346.73EC83857011@sourceware.org> Date: Tue, 5 Oct 2021 08:23:46 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Oct 2021 08:23:46 -0000 https://gcc.gnu.org/g:b2b2fe2d679dec37e30b86c73fefa9d7e920f4ca commit r12-4164-gb2b2fe2d679dec37e30b86c73fefa9d7e920f4ca Author: Pascal Obry Date: Thu Sep 16 16:23:07 2021 +0200 [Ada] Minor code clean-up gcc/ada/ * libgnat/g-forstr.adb (Get_Formatted): Minor code clean-up. 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 64c4cb608ae..71d17f12b73 100644 --- a/gcc/ada/libgnat/g-forstr.adb +++ b/gcc/ada/libgnat/g-forstr.adb @@ -420,7 +420,7 @@ package body GNAT.Formatted_String is -- Zero padding if required and possible - if F_Spec.Left_Justify = False + if not F_Spec.Left_Justify and then F_Spec.Zero_Pad and then F_Spec.Width > Len + Value'First - S then