]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libgfortran/generated/in_unpack_c16.c
Use pointer sized array indices.
[thirdparty/gcc.git] / libgfortran / generated / in_unpack_c16.c
index e007ef6b8efcb5dd7cfb5a4382ad87bd6fcc6fa9..16fd0322c5880223c5704a62e4a8244560ac2a65 100644 (file)
@@ -39,7 +39,6 @@ internal_unpack_c16 (gfc_array_c16 * d, const GFC_COMPLEX_16 * src)
   index_type dim;
   index_type dsize;
   GFC_COMPLEX_16 * restrict dest;
-  int n;
 
   dest = d->base_addr;
   if (src == dest || !src)
@@ -47,7 +46,7 @@ internal_unpack_c16 (gfc_array_c16 * d, const GFC_COMPLEX_16 * src)
 
   dim = GFC_DESCRIPTOR_RANK (d);
   dsize = 1;
-  for (n = 0; n < dim; n++)
+  for (index_type n = 0; n < dim; n++)
     {
       count[n] = 0;
       stride[n] = GFC_DESCRIPTOR_STRIDE(d,n);
@@ -77,7 +76,7 @@ internal_unpack_c16 (gfc_array_c16 * d, const GFC_COMPLEX_16 * src)
       dest += 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