diff mbox series

[libgfortran,committed] PR 83070, fix -Wsign-compare warning

Message ID CAO9iq9FxCT+BgqLKcTO123zAKPRKkbFwCQYPQ_RVRTMXwtYgXw@mail.gmail.com
State New
Headers show
Series [libgfortran,committed] PR 83070, fix -Wsign-compare warning | expand

Commit Message

Janne Blomqvist Nov. 22, 2017, 8:54 a.m. UTC
Hi,

committed the following patch as r255045, pre-approved in the PR:

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.
diff mbox series

Patch

--- trunk/libgfortran/intrinsics/eoshift0.c 2017/11/22 08:47:47 255044
+++ trunk/libgfortran/intrinsics/eoshift0.c 2017/11/22 08:51:21 255045
@@ -107,7 +107,7 @@ 
   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;