diff options
Diffstat (limited to 'libgfortran/generated/unpack_r10.c')
-rw-r--r-- | libgfortran/generated/unpack_r10.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgfortran/generated/unpack_r10.c b/libgfortran/generated/unpack_r10.c index 406395c4208..926a45777ae 100644 --- a/libgfortran/generated/unpack_r10.c +++ b/libgfortran/generated/unpack_r10.c @@ -99,7 +99,7 @@ unpack0_r10 (gfc_array_r10 *ret, const gfc_array_r10 *vector, rs *= extent[n]; } ret->offset = 0; - ret->base_addr = xmalloc (rs * sizeof (GFC_REAL_10)); + ret->base_addr = xmallocarray (rs, sizeof (GFC_REAL_10)); } else { @@ -244,7 +244,7 @@ unpack1_r10 (gfc_array_r10 *ret, const gfc_array_r10 *vector, rs *= extent[n]; } ret->offset = 0; - ret->base_addr = xmalloc (rs * sizeof (GFC_REAL_10)); + ret->base_addr = xmallocarray (rs, sizeof (GFC_REAL_10)); } else { |