aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPascal Obry <obry@adacore.com>2021-09-16 16:23:07 +0200
committerPierre-Marie de Rodat <derodat@adacore.com>2021-10-05 08:20:04 +0000
commitb2b2fe2d679dec37e30b86c73fefa9d7e920f4ca (patch)
treedf5aa43bcdc267ae1205d821ed883ca0adeef8cc /gcc
parent8c77e8b09ef271c10f89161591e8eb162c579f4b (diff)
downloadgcc-b2b2fe2d679dec37e30b86c73fefa9d7e920f4ca.zip
gcc-b2b2fe2d679dec37e30b86c73fefa9d7e920f4ca.tar.gz
gcc-b2b2fe2d679dec37e30b86c73fefa9d7e920f4ca.tar.bz2
[Ada] Minor code clean-up
gcc/ada/ * libgnat/g-forstr.adb (Get_Formatted): Minor code clean-up.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ada/libgnat/g-forstr.adb2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ada/libgnat/g-forstr.adb b/gcc/ada/libgnat/g-forstr.adb
index 64c4cb6..71d17f1 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