summaryrefslogtreecommitdiff
path: root/libgfortran/generated/sum_r8.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgfortran/generated/sum_r8.c')
-rw-r--r--libgfortran/generated/sum_r8.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libgfortran/generated/sum_r8.c b/libgfortran/generated/sum_r8.c
index bdc93e0e47a..95272fb1f16 100644
--- a/libgfortran/generated/sum_r8.c
+++ b/libgfortran/generated/sum_r8.c
@@ -75,8 +75,10 @@ __sum_r8 (gfc_array_r8 * retarray, gfc_array_r8 *array, index_type *pdim)
retarray->dim[n].stride = retarray->dim[n-1].stride * extent[n-1];
}
- retarray->data = internal_malloc (sizeof (GFC_REAL_8) *
- (retarray->dim[rank-1].stride * extent[rank-1]));
+ retarray->data
+ = internal_malloc_size (sizeof (GFC_REAL_8)
+ * retarray->dim[rank-1].stride
+ * extent[rank-1]);
retarray->base = 0;
}