[fortran,committed] Use gfc_charlen_t instead of int in gfc_conv_string_init

Message ID CAO9iq9HUufYgUwJ=u9_8+19TGD8DPO20QJbY10=Oa0ycjU3h6w@mail.gmail.com
State New
Headers show
Series
  • [fortran,committed] Use gfc_charlen_t instead of int in gfc_conv_string_init
Related show

Commit Message

Janne Blomqvist Jan. 31, 2018, 7:46 p.m.
Hi,

I just committed the patch below as obvious.


-- 
Janne Blomqvist

Patch

Index: ChangeLog
===================================================================
--- ChangeLog   (revision 257256)
+++ ChangeLog   (working copy)
@@ -1,5 +1,10 @@ 
 2018-01-31  Janne Blomqvist  <jb@gcc.gnu.org>

+       * trans-const.c (gfc_conv_string_init): Use gfc_charlen_t instead
+       of int for slen.
+
+2018-01-31  Janne Blomqvist  <jb@gcc.gnu.org>
+
        PR fortran/78534
        * trans-expr.c (fill_with_spaces): Use memset instead of
        generating loop.
Index: trans-const.c
===================================================================
--- trans-const.c       (revision 257256)
+++ trans-const.c       (working copy)
@@ -141,7 +141,7 @@  gfc_conv_string_init (tree length, gfc_e
 {
   gfc_char_t *s;
   HOST_WIDE_INT len;
-  int slen;
+  gfc_charlen_t slen;
   tree str;
   bool free_s = false;