summaryrefslogtreecommitdiff
path: root/libgfortran/generated/count_16_l.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgfortran/generated/count_16_l.c')
-rw-r--r--libgfortran/generated/count_16_l.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libgfortran/generated/count_16_l.c b/libgfortran/generated/count_16_l.c
index 98c5aeed106..28ae1611db0 100644
--- a/libgfortran/generated/count_16_l.c
+++ b/libgfortran/generated/count_16_l.c
@@ -195,9 +195,9 @@ count_16_l (gfc_array_i16 * const restrict retarray,
base -= sstride[n] * extent[n];
dest -= dstride[n] * extent[n];
n++;
- if (n == rank)
+ if (n >= rank)
{
- /* Break out of the look. */
+ /* Break out of the loop. */
continue_loop = 0;
break;
}