diff options
Diffstat (limited to 'libgfortran/generated/transpose_i16.c')
-rw-r--r-- | libgfortran/generated/transpose_i16.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libgfortran/generated/transpose_i16.c b/libgfortran/generated/transpose_i16.c index 236fcf1b510..44aff01ff5f 100644 --- a/libgfortran/generated/transpose_i16.c +++ b/libgfortran/generated/transpose_i16.c @@ -60,7 +60,8 @@ transpose_i16 (gfc_array_i16 * const restrict ret, GFC_DIMENSION_SET(ret->dim[1], 0, GFC_DESCRIPTOR_EXTENT(source,0) - 1, GFC_DESCRIPTOR_EXTENT(source, 1)); - ret->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * size0 ((array_t *) ret)); + ret->base_addr = xmallocarray (size0 ((array_t *) ret), + sizeof (GFC_INTEGER_16)); ret->offset = 0; } else if (unlikely (compile_options.bounds_check)) { |