Commit 140a0bdd by Uros Bizjak Committed by Uros Bizjak

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
parent 60448173
2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
* io/transfer.c (transfer_array_inner): Do not
cast charlen to index_type.
2019-02-25 Dominique d'Humieres <dominiq@gcc.gnu.org> 2019-02-25 Dominique d'Humieres <dominiq@gcc.gnu.org>
PR libfortran/89274 PR libfortran/89274
...@@ -120,7 +125,6 @@ ...@@ -120,7 +125,6 @@
2019-01-09 Sandra Loosemore <sandra@codesourcery.com> 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
PR other/16615 PR other/16615
* caf/single.c: Mechanically replace "can not" with "cannot". * caf/single.c: Mechanically replace "can not" with "cannot".
* io/unit.c: Likewise. * io/unit.c: Likewise.
......
...@@ -2496,7 +2496,7 @@ transfer_array_inner (st_parameter_dt *dtp, gfc_array_char *desc, int kind, ...@@ -2496,7 +2496,7 @@ transfer_array_inner (st_parameter_dt *dtp, gfc_array_char *desc, int kind,
return; return;
iotype = (bt) GFC_DESCRIPTOR_TYPE (desc); 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); rank = GFC_DESCRIPTOR_RANK (desc);
......
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