diff options
Diffstat (limited to 'libgfortran/generated/minloc1_8_i4.c')
-rw-r--r-- | libgfortran/generated/minloc1_8_i4.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libgfortran/generated/minloc1_8_i4.c b/libgfortran/generated/minloc1_8_i4.c index 1d1c3d406aa..5c347dd12b5 100644 --- a/libgfortran/generated/minloc1_8_i4.c +++ b/libgfortran/generated/minloc1_8_i4.c @@ -77,8 +77,10 @@ __minloc1_8_i4 (gfc_array_i8 * retarray, gfc_array_i4 *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; } |