* arith.c (gfc_range_check): Fix logic error.
authorPaul Brook <paul@codesourcery.com>
Sun, 16 May 2004 18:01:38 +0000 (18:01 +0000)
committerPaul Brook <pbrook@gcc.gnu.org>
Sun, 16 May 2004 18:01:38 +0000 (18:01 +0000)
From-SVN: r81918

gcc/fortran/ChangeLog
gcc/fortran/arith.c

index b183b8d6b13aee2b964d9e8bf2a1c137eed29fdd..9eed0e926e48823a87f690430bcca71b281219a2 100644 (file)
@@ -1,3 +1,7 @@
+2004-05-16  Paul Brook  <paul@codesourcery.com>
+
+       * arith.c (gfc_range_check): Fix logic error.
+
 2004-05-16  Steve Kargl  <sgk@troutmask.apl.washington.edu>
 
        * arith.c: Fix comment typos.
index 30957b585f86c91d26cde18acf769b60a949eef2..7d47151a31d2b37c234b7a222cb15947d8c7c067 100644 (file)
@@ -1193,7 +1193,7 @@ gfc_range_check (gfc_expr * e)
 
     case BT_COMPLEX:
       rc = gfc_check_real_range (e->value.complex.r, e->ts.kind);
-      if (rc != ARITH_OK)
+      if (rc == ARITH_OK)
        rc = gfc_check_real_range (e->value.complex.i, e->ts.kind);
 
       break;