Fix pad status check.
authorJanne Blomqvist <jb@gcc.gnu.org>
Tue, 9 Sep 2014 21:23:25 +0000 (00:23 +0300)
committerJanne Blomqvist <jb@gcc.gnu.org>
Tue, 9 Sep 2014 21:23:25 +0000 (00:23 +0300)
2014-09-10  Janne Blomqvist  <jb@gcc.gnu.org>

* io/transfer.c (read_block_form): Fix pad status check (found by
Thomas Schwinge with -Wlogical-not-parentheses).

From-SVN: r215092

libgfortran/ChangeLog
libgfortran/io/transfer.c

index b79790e3f3c69a1b9ec5e5a1ae5fff529df02b00..29c35fa627729a9592cef0f042e72c65cd16c191 100644 (file)
@@ -1,3 +1,8 @@
+2014-09-10  Janne Blomqvist  <jb@gcc.gnu.org>
+
+       * io/transfer.c (read_block_form): Fix pad status check (found by
+       Thomas Schwinge with -Wlogical-not-parentheses).
+
 2014-08-31  Tobias Burnus  <burnus@net-b.de>
 
        * caf/libcaf.h (_gfortran_caf_send, _gfortran_caf_get,
index af2932c098d11a0da05490a7f4157b16e7568b6d..dc1b6f4145ac257c746dc441e412c2a875d01865 100644 (file)
@@ -475,7 +475,7 @@ read_block_form (st_parameter_dt *dtp, int * nbytes)
   if (norig != *nbytes)
     {
       /* Short read, this shouldn't happen.  */
-      if (!dtp->u.p.current_unit->pad_status == PAD_YES)
+      if (dtp->u.p.current_unit->pad_status == PAD_NO)
        {
          generate_error (&dtp->common, LIBERROR_EOR, NULL);
          source = NULL;