OSDN Git Service

* arith.c (gfc_range_check): Fix logic error.
authorpbrook <pbrook@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 16 May 2004 18:01:38 +0000 (18:01 +0000)
committerpbrook <pbrook@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 16 May 2004 18:01:38 +0000 (18:01 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81918 138bc75d-0d04-0410-961f-82ee72b054a4

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;