Commit 67a459f3 by Paul Brook Committed by Paul Brook

* arith.c (gfc_range_check): Fix logic error.

From-SVN: r81918
parent 5a4db26d
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.
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment