summaryrefslogtreecommitdiff
path: root/libgfortran/generated/in_pack_i2.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgfortran/generated/in_pack_i2.c')
-rw-r--r--libgfortran/generated/in_pack_i2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgfortran/generated/in_pack_i2.c b/libgfortran/generated/in_pack_i2.c
index 6ac7845ad52..99bc9814a34 100644
--- a/libgfortran/generated/in_pack_i2.c
+++ b/libgfortran/generated/in_pack_i2.c
@@ -76,7 +76,7 @@ internal_pack_2 (gfc_array_i2 * source)
return source->base_addr;
/* Allocate storage for the destination. */
- destptr = (GFC_INTEGER_2 *)xmalloc (ssize * sizeof (GFC_INTEGER_2));
+ destptr = xmallocarray (ssize, sizeof (GFC_INTEGER_2));
dest = destptr;
src = source->base_addr;
stride0 = stride[0];