aboutsummaryrefslogtreecommitdiff
path: root/libgfortran/io
diff options
context:
space:
mode:
authorUros Bizjak <ubizjak@gmail.com>2019-02-26 19:41:53 +0100
committerUros Bizjak <uros@gcc.gnu.org>2019-02-26 19:41:53 +0100
commit140a0bddcc12f14fcbc914e117ccf79cc6dd16cc (patch)
tree86e0889eae6ed18b4e3231d7e63db78bb692d6a1 /libgfortran/io
parent60448173c4fc67032eb30e6e189055d7c97ceafd (diff)
downloadgcc-140a0bddcc12f14fcbc914e117ccf79cc6dd16cc.zip
gcc-140a0bddcc12f14fcbc914e117ccf79cc6dd16cc.tar.gz
gcc-140a0bddcc12f14fcbc914e117ccf79cc6dd16cc.tar.bz2
transfer.c (transfer_array_inner): Do not cast charlen to index_type.
* io/transfer.c (transfer_array_inner): Do not cast charlen to index_type. From-SVN: r269224
Diffstat (limited to 'libgfortran/io')
-rw-r--r--libgfortran/io/transfer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgfortran/io/transfer.c b/libgfortran/io/transfer.c
index 247fb6d..c43360f 100644
--- a/libgfortran/io/transfer.c
+++ b/libgfortran/io/transfer.c
@@ -2496,7 +2496,7 @@ transfer_array_inner (st_parameter_dt *dtp, gfc_array_char *desc, int kind,
return;
iotype = (bt) GFC_DESCRIPTOR_TYPE (desc);
- size = iotype == BT_CHARACTER ? (index_type) charlen : GFC_DESCRIPTOR_SIZE (desc);
+ size = iotype == BT_CHARACTER ? charlen : GFC_DESCRIPTOR_SIZE (desc);
rank = GFC_DESCRIPTOR_RANK (desc);