diff options
Diffstat (limited to 'libgfortran/generated/minval_i8.c')
-rw-r--r-- | libgfortran/generated/minval_i8.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libgfortran/generated/minval_i8.c b/libgfortran/generated/minval_i8.c index 4b7bac6b532..deca048917a 100644 --- a/libgfortran/generated/minval_i8.c +++ b/libgfortran/generated/minval_i8.c @@ -76,8 +76,10 @@ __minval_i8 (gfc_array_i8 * retarray, gfc_array_i8 *array, index_type *pdim) retarray->dim[n].stride = retarray->dim[n-1].stride * extent[n-1]; } - retarray->data = internal_malloc (sizeof (GFC_INTEGER_8) * - (retarray->dim[rank-1].stride * extent[rank-1])); + retarray->data + = internal_malloc_size (sizeof (GFC_INTEGER_8) + * retarray->dim[rank-1].stride + * extent[rank-1]); retarray->base = 0; } |