aboutsummaryrefslogtreecommitdiff
path: root/libgfortran/generated/sum_i1.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgfortran/generated/sum_i1.c')
-rw-r--r--libgfortran/generated/sum_i1.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libgfortran/generated/sum_i1.c b/libgfortran/generated/sum_i1.c
index 74908b9..a6d3043 100644
--- a/libgfortran/generated/sum_i1.c
+++ b/libgfortran/generated/sum_i1.c
@@ -100,7 +100,7 @@ sum_i1 (gfc_array_i1 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ GFC_DTYPE_COPY_SETRANK(retarray,array,rank);
alloc_size = GFC_DESCRIPTOR_STRIDE(retarray,rank-1) * extent[rank-1];
@@ -287,7 +287,7 @@ msum_i1 (gfc_array_i1 * const restrict retarray,
alloc_size = GFC_DESCRIPTOR_STRIDE(retarray,rank-1) * extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ GFC_DTYPE_COPY_SETRANK(retarray,array,rank);
if (alloc_size == 0)
{
@@ -446,7 +446,7 @@ ssum_i1 (gfc_array_i1 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ GFC_DTYPE_COPY_SETRANK(retarray,array,rank);
alloc_size = GFC_DESCRIPTOR_STRIDE(retarray,rank-1) * extent[rank-1];