diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-08-22 15:46:00 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-08-22 15:46:00 +0000 |
commit | 76865dc52cea3acffe827ea87eddae5546aaf01c (patch) | |
tree | 9d926bd2a9aa4492ebb651875fbd047db0ba0899 /gcc/ada/s-strops.adb | |
parent | 7460ca759829708adcd52679569c8fdbbaf77627 (diff) | |
download | gcc-76865dc52cea3acffe827ea87eddae5546aaf01c.tar.gz |
2008-08-22 Robert Dewar <dewar@adacore.com>
* s-sopco4.adb: Minor code fix to avoid warning
* s-sopco5.adb: Minor code fix to avoid warning
* s-strops.adb: Minor code fix to avoid warning
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@139488 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/s-strops.adb')
-rw-r--r-- | gcc/ada/s-strops.adb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/ada/s-strops.adb b/gcc/ada/s-strops.adb index 4e434726b07..e92c3bb7a6c 100644 --- a/gcc/ada/s-strops.adb +++ b/gcc/ada/s-strops.adb @@ -6,7 +6,7 @@ -- -- -- B o d y -- -- -- --- Copyright (C) 1992-2007, Free Software Foundation, Inc. -- +-- Copyright (C) 1992-2008, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- @@ -43,7 +43,7 @@ package body System.String_Ops is function Str_Concat (X, Y : String) return String is begin - if X'Length <= 0 then + if X'Length = 0 then return Y; else @@ -91,7 +91,7 @@ package body System.String_Ops is function Str_Concat_SC (X : String; Y : Character) return String is begin - if X'Length <= 0 then + if X'Length = 0 then return (1 => Y); else |