PR 83070 Fix -Wsign-compare warning

2017-11-22  Janne Blomqvist  <jb@gcc.gnu.org>

        PR libfortran/83070
        * intrinsics/eoshift0.c (eoshift0): Fix -Wsign-compare warning by
        making a_ex and r_ex index_type instead of size_t.

From-SVN: r255045
This commit is contained in:
Janne Blomqvist 2017-11-22 10:51:21 +02:00
parent 8f8e53262b
commit 9cf7bfd919
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2017-11-22 Janne Blomqvist <jb@gcc.gnu.org>
PR libfortran/83070
* intrinsics/eoshift0.c (eoshift0): Fix -Wsign-compare warning by
making a_ex and r_ex index_type instead of size_t.
2017-11-20 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/78549

View File

@ -107,7 +107,7 @@ eoshift0 (gfc_array_char * ret, const gfc_array_char * array,
if (which > 0)
{
/* Test if both ret and array are contiguous. */
size_t r_ex, a_ex;
index_type r_ex, a_ex;
r_ex = 1;
a_ex = 1;
do_blocked = true;