]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libgfortran/generated/shape_i16.c
Update copyright years.
[thirdparty/gcc.git] / libgfortran / generated / shape_i16.c
index 89abddfcd1a060c59653a0dfc6013ff694372fe4..7cc1dc5cd641c5afb9a62339f771427901f2f4c4 100644 (file)
@@ -1,5 +1,5 @@
 /* Implementation of the SHAPE intrinsic
-   Copyright (C) 2002-2018 Free Software Foundation, Inc.
+   Copyright (C) 2002-2020 Free Software Foundation, Inc.
    Contributed by Paul Brook <paul@nowt.org>
 
 This file is part of the GNU Fortran runtime library (libgfortran).
@@ -36,12 +36,10 @@ void
 shape_16 (gfc_array_i16 * const restrict ret, 
        const array_t * const restrict array)
 {
-  int n;
   index_type stride;
   index_type extent;
-  int rank;
 
-  rank = GFC_DESCRIPTOR_RANK (array);
+  int rank = GFC_DESCRIPTOR_RANK (array);
 
   if (ret->base_addr == NULL)
     {
@@ -55,7 +53,7 @@ shape_16 (gfc_array_i16 * const restrict ret,
   if (GFC_DESCRIPTOR_EXTENT(ret,0) < 1)
     return;
 
-  for (n = 0; n < rank; n++)
+  for (index_type n = 0; n < rank; n++)
     {
       extent = GFC_DESCRIPTOR_EXTENT(array,n);
       ret->base_addr[n * stride] = extent > 0 ? extent : 0 ;