diff options
Diffstat (limited to 'libgfortran/generated/maxloc1_4_i16.c')
-rw-r--r-- | libgfortran/generated/maxloc1_4_i16.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libgfortran/generated/maxloc1_4_i16.c b/libgfortran/generated/maxloc1_4_i16.c index 62dadf6..9221e22 100644 --- a/libgfortran/generated/maxloc1_4_i16.c +++ b/libgfortran/generated/maxloc1_4_i16.c @@ -329,15 +329,13 @@ mmaxloc1_4_i16 (gfc_array_i4 * const restrict retarray, retarray->offset = 0; retarray->dtype.rank = rank; + retarray->base_addr = xmallocarray (alloc_size, sizeof (GFC_INTEGER_4)); if (alloc_size == 0) { /* Make sure we have a zero-sized array. */ GFC_DIMENSION_SET(retarray->dim[0], 0, -1, 1); return; } - else - retarray->base_addr = xmallocarray (alloc_size, sizeof (GFC_INTEGER_4)); - } else { @@ -537,14 +535,13 @@ smaxloc1_4_i16 (gfc_array_i4 * const restrict retarray, alloc_size = GFC_DESCRIPTOR_STRIDE(retarray,rank-1) * extent[rank-1]; + retarray->base_addr = xmallocarray (alloc_size, sizeof (GFC_INTEGER_4)); if (alloc_size == 0) { /* Make sure we have a zero-sized array. */ GFC_DIMENSION_SET(retarray->dim[0], 0, -1, 1); return; } - else - retarray->base_addr = xmallocarray (alloc_size, sizeof (GFC_INTEGER_4)); } else { |