diff options
Diffstat (limited to 'libgfortran/generated/unpack_i16.c')
-rw-r--r-- | libgfortran/generated/unpack_i16.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgfortran/generated/unpack_i16.c b/libgfortran/generated/unpack_i16.c index 2a59725397c..7e0d1f766d5 100644 --- a/libgfortran/generated/unpack_i16.c +++ b/libgfortran/generated/unpack_i16.c @@ -99,7 +99,7 @@ unpack0_i16 (gfc_array_i16 *ret, const gfc_array_i16 *vector, rs *= extent[n]; } ret->offset = 0; - ret->base_addr = xmalloc (rs * sizeof (GFC_INTEGER_16)); + ret->base_addr = xmallocarray (rs, sizeof (GFC_INTEGER_16)); } else { @@ -244,7 +244,7 @@ unpack1_i16 (gfc_array_i16 *ret, const gfc_array_i16 *vector, rs *= extent[n]; } ret->offset = 0; - ret->base_addr = xmalloc (rs * sizeof (GFC_INTEGER_16)); + ret->base_addr = xmallocarray (rs, sizeof (GFC_INTEGER_16)); } else { |