diff options
Diffstat (limited to 'libgfortran/generated/spread_i2.c')
-rw-r--r-- | libgfortran/generated/spread_i2.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libgfortran/generated/spread_i2.c b/libgfortran/generated/spread_i2.c index f48d66e..eeb2899 100644 --- a/libgfortran/generated/spread_i2.c +++ b/libgfortran/generated/spread_i2.c @@ -227,10 +227,8 @@ spread_i2 (gfc_array_i2 *ret, const gfc_array_i2 *source, void spread_scalar_i2 (gfc_array_i2 *ret, const GFC_INTEGER_2 *source, - const index_type along, const index_type pncopies) + const index_type along, const index_type ncopies) { - int n; - int ncopies = pncopies; GFC_INTEGER_2 * restrict dest; index_type stride; @@ -256,7 +254,7 @@ spread_scalar_i2 (gfc_array_i2 *ret, const GFC_INTEGER_2 *source, dest = ret->base_addr; stride = GFC_DESCRIPTOR_STRIDE(ret,0); - for (n = 0; n < ncopies; n++) + for (index_type n = 0; n < ncopies; n++) { *dest = *source; dest += stride; |