aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/io.c
diff options
context:
space:
mode:
authorTobias Burnus <burnus@net-b.de>2015-01-26 22:05:39 +0100
committerTobias Burnus <burnus@gcc.gnu.org>2015-01-26 22:05:39 +0100
commitc123c5ba64cc59cceb71594b415c75c1f7618349 (patch)
tree4ccb7d149a306f4f9cb23cc3b66b630860271167 /gcc/fortran/io.c
parent3349605dc7fc69d94e794ee12fc079985f3cccbf (diff)
downloadgcc-c123c5ba64cc59cceb71594b415c75c1f7618349.zip
gcc-c123c5ba64cc59cceb71594b415c75c1f7618349.tar.gz
gcc-c123c5ba64cc59cceb71594b415c75c1f7618349.tar.bz2
io.c (gfc_match_inquire): Replace "-1" by a defined constant.
2015-01-26 Tobias Burnus <burnus@net-b.de> * io.c (gfc_match_inquire): Replace "-1" by a defined constant. From-SVN: r220135
Diffstat (limited to 'gcc/fortran/io.c')
-rw-r--r--gcc/fortran/io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/io.c b/gcc/fortran/io.c
index a03984c..a13d1ae 100644
--- a/gcc/fortran/io.c
+++ b/gcc/fortran/io.c
@@ -4000,7 +4000,7 @@ gfc_match_inquire (void)
if (inquire->unit != NULL && inquire->unit->expr_type == EXPR_CONSTANT
&& inquire->unit->ts.type == BT_INTEGER
- && mpz_get_si (inquire->unit->value.integer) == -1)
+ && mpz_get_si (inquire->unit->value.integer) == GFC_INTERNAL_UNIT)
{
gfc_error ("UNIT number in INQUIRE statement at %L can not be -1", &loc);
goto cleanup;