]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libgfortran/generated/in_pack_i16.c
Use pointer sized array indices.
[thirdparty/gcc.git] / libgfortran / generated / in_pack_i16.c
index 36735ed3539cbbbfb9d8b9f862dd29aa1667ae9b..746f5c441ac67da5b39ce91387c24c46619543cf 100644 (file)
@@ -43,7 +43,6 @@ internal_pack_16 (gfc_array_i16 * source)
   const GFC_INTEGER_16 *src;
   GFC_INTEGER_16 * restrict dest;
   GFC_INTEGER_16 *destptr;
-  int n;
   int packed;
 
   /* TODO: Investigate how we can figure out if this is a temporary
@@ -52,7 +51,7 @@ internal_pack_16 (gfc_array_i16 * source)
   dim = GFC_DESCRIPTOR_RANK (source);
   ssize = 1;
   packed = 1;
-  for (n = 0; n < dim; n++)
+  for (index_type n = 0; n < dim; n++)
     {
       count[n] = 0;
       stride[n] = GFC_DESCRIPTOR_STRIDE(source,n);
@@ -88,7 +87,7 @@ internal_pack_16 (gfc_array_i16 * source)
       src += stride0;
       count[0]++;
       /* Advance to the next source element.  */
-      n = 0;
+      index_type n = 0;
       while (count[n] == extent[n])
         {
           /* When we get to the end of a dimension, reset it and increment