summaryrefslogtreecommitdiff
path: root/libgfortran/generated/any_l16.c
diff options
context:
space:
mode:
authorburnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4>2014-06-17 19:31:06 +0000
committerburnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4>2014-06-17 19:31:06 +0000
commit8e882a1674e70cdea3bf8630a7613fe2bf12e52d (patch)
tree3580b7403687d7d146efbcceecee9d57deff3d8f /libgfortran/generated/any_l16.c
parentfade5ce98b583fa416ba84b4cc3cad12af227f57 (diff)
parent634a5ad7fc8a4498978609c4e523b29658affa22 (diff)
downloadgcc-8e882a1674e70cdea3bf8630a7613fe2bf12e52d.tar.gz
2014-06-17 Tobias Burnus <burnus@net-b.de>
* Merge from the trunk to r211744. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/fortran-dev@211745 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran/generated/any_l16.c')
-rw-r--r--libgfortran/generated/any_l16.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libgfortran/generated/any_l16.c b/libgfortran/generated/any_l16.c
index 1e76d745c78..eb84fc3d950 100644
--- a/libgfortran/generated/any_l16.c
+++ b/libgfortran/generated/any_l16.c
@@ -101,8 +101,7 @@ any_l16 (gfc_array_l16 * const restrict retarray,
retarray->type = array->type;
retarray->offset = 0;
- alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
- * extent[rank-1];
+ alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1) * extent[rank-1];
if (alloc_size == 0)
{
@@ -111,7 +110,7 @@ any_l16 (gfc_array_l16 * const restrict retarray,
return;
}
else
- retarray->base_addr = xmalloc (alloc_size);
+ retarray->base_addr = xmallocarray (alloc_size, sizeof (GFC_LOGICAL_16));
}
else
{