summaryrefslogtreecommitdiff
path: root/libgfortran/generated/in_pack_r4.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgfortran/generated/in_pack_r4.c')
-rw-r--r--libgfortran/generated/in_pack_r4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libgfortran/generated/in_pack_r4.c b/libgfortran/generated/in_pack_r4.c
index 372f0871957..68a7e5a0dca 100644
--- a/libgfortran/generated/in_pack_r4.c
+++ b/libgfortran/generated/in_pack_r4.c
@@ -57,8 +57,8 @@ internal_pack_r4 (gfc_array_r4 * source)
for (n = 0; n < dim; n++)
{
count[n] = 0;
- stride[n] = source->dim[n].stride;
- extent[n] = source->dim[n].ubound + 1 - source->dim[n].lbound;
+ stride[n] = GFC_DESCRIPTOR_STRIDE(source,n);
+ extent[n] = GFC_DESCRIPTOR_EXTENT(source,n);
if (extent[n] <= 0)
{
/* Do nothing. */