aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/libgfortran/generated/shape_i4.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/libgfortran/generated/shape_i4.c')
-rw-r--r--gcc-4.9/libgfortran/generated/shape_i4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc-4.9/libgfortran/generated/shape_i4.c b/gcc-4.9/libgfortran/generated/shape_i4.c
index 1abac162d..0a56fe9fe 100644
--- a/gcc-4.9/libgfortran/generated/shape_i4.c
+++ b/gcc-4.9/libgfortran/generated/shape_i4.c
@@ -49,7 +49,7 @@ shape_4 (gfc_array_i4 * const restrict ret,
{
GFC_DIMENSION_SET(ret->dim[0], 0, rank - 1, 1);
ret->offset = 0;
- ret->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank);
+ ret->base_addr = xmallocarray (rank, sizeof (GFC_INTEGER_4));
}
stride = GFC_DESCRIPTOR_STRIDE(ret,0);