re PR ada/70786 (Missing "not" breaks Ada.Text_IO.Get_Immediate(File, Item, Available))
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 28 Apr 2016 10:58:38 +0000 (10:58 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Thu, 28 Apr 2016 10:58:38 +0000 (10:58 +0000)
PR ada/70786
* a-textio.adb (Get_Immediate): Add missing 'not' in expression.

From-SVN: r235554

gcc/ada/ChangeLog
gcc/ada/a-textio.adb

index f277eaf2ed335007fdf4d847b0fa6e10b8be6d47..cd0ec39fbf81d6bba42fc322eea3b62f0069317c 100644 (file)
@@ -1,3 +1,8 @@
+2016-04-28  Eric Botcazou  <ebotcazou@adacore.com>
+
+       PR ada/70786
+       * a-textio.adb (Get_Immediate): Add missing 'not' in expression.
+
 2016-04-27  Eric Botcazou  <ebotcazou@adacore.com>
 
        * sem_aux.adb (Is_By_Reference_Type): Also return true for a tagged
index 59f9190ac1889bd85ecb0e5d938e9318ac3f428c..f9219e3b3a91bcf39111a598036cb620d4631af8 100644 (file)
@@ -668,7 +668,7 @@ package body Ada.Text_IO is
             Available := True;
 
             Item :=
-              (if Is_Start_Of_Encoding (Character'Val (ch), File.WC_Method)
+              (if not Is_Start_Of_Encoding (Character'Val (ch), File.WC_Method)
                then Character'Val (ch)
                else Get_Upper_Half_Char_Immed (Character'Val (ch), File));
          end if;