diff options
author | Janne Blomqvist <jb@gcc.gnu.org> | 2017-11-22 10:51:21 +0200 |
---|---|---|
committer | Janne Blomqvist <jb@gcc.gnu.org> | 2017-11-22 10:51:21 +0200 |
commit | 9cf7bfd919f394595c0ac561ed67b333a39ae51e (patch) | |
tree | 2f83266d8a7d0f56cbb544fae8b0ae2f636179cf /libgfortran/intrinsics | |
parent | 8f8e53262b59836866fee7e4381117fcf6dc7b38 (diff) | |
download | gcc-9cf7bfd919f394595c0ac561ed67b333a39ae51e.zip gcc-9cf7bfd919f394595c0ac561ed67b333a39ae51e.tar.gz gcc-9cf7bfd919f394595c0ac561ed67b333a39ae51e.tar.bz2 |
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
Diffstat (limited to 'libgfortran/intrinsics')
-rw-r--r-- | libgfortran/intrinsics/eoshift0.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgfortran/intrinsics/eoshift0.c b/libgfortran/intrinsics/eoshift0.c index 24a23c3..3dae88c 100644 --- a/libgfortran/intrinsics/eoshift0.c +++ b/libgfortran/intrinsics/eoshift0.c @@ -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; |