* 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 b183b8d..9eed0e9 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 30957b5..7d47151 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;