diff options
Diffstat (limited to 'libgfortran/generated/spread_r10.c')
-rw-r--r-- | libgfortran/generated/spread_r10.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libgfortran/generated/spread_r10.c b/libgfortran/generated/spread_r10.c index d023a2774f1..76c1d1608bb 100644 --- a/libgfortran/generated/spread_r10.c +++ b/libgfortran/generated/spread_r10.c @@ -101,8 +101,8 @@ spread_r10 (gfc_array_r10 *ret, const gfc_array_r10 *source, } ret->offset = 0; - /* internal_malloc_size allocates a single byte for zero size. */ - ret->base_addr = internal_malloc_size (rs * sizeof(GFC_REAL_10)); + /* xmalloc allocates a single byte for zero size. */ + ret->base_addr = xmalloc (rs * sizeof(GFC_REAL_10)); if (rs <= 0) return; } @@ -244,7 +244,7 @@ spread_scalar_r10 (gfc_array_r10 *ret, const GFC_REAL_10 *source, if (ret->base_addr == NULL) { - ret->base_addr = internal_malloc_size (ncopies * sizeof (GFC_REAL_10)); + ret->base_addr = xmalloc (ncopies * sizeof (GFC_REAL_10)); ret->offset = 0; GFC_DIMENSION_SET(ret->dim[0], 0, ncopies - 1, 1); } |