summaryrefslogtreecommitdiff
path: root/libgfortran/generated/in_pack_c8.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgfortran/generated/in_pack_c8.c')
-rw-r--r--libgfortran/generated/in_pack_c8.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libgfortran/generated/in_pack_c8.c b/libgfortran/generated/in_pack_c8.c
index f57f2aae130..142ad99cdf7 100644
--- a/libgfortran/generated/in_pack_c8.c
+++ b/libgfortran/generated/in_pack_c8.c
@@ -57,8 +57,8 @@ internal_pack_c8 (gfc_array_c8 * 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. */