summaryrefslogtreecommitdiff
path: root/libgfortran/generated/maxloc0_4_r4.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgfortran/generated/maxloc0_4_r4.c')
-rw-r--r--libgfortran/generated/maxloc0_4_r4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libgfortran/generated/maxloc0_4_r4.c b/libgfortran/generated/maxloc0_4_r4.c
index 292c0bfb031..9f3931a1bf7 100644
--- a/libgfortran/generated/maxloc0_4_r4.c
+++ b/libgfortran/generated/maxloc0_4_r4.c
@@ -148,7 +148,7 @@ maxloc0_4_r4 (gfc_array_i4 * const restrict retarray,
frequently used path so probably not worth it. */
base -= sstride[n] * extent[n];
n++;
- if (n == rank)
+ if (n >= rank)
{
/* Break out of the loop. */
base = NULL;
@@ -315,7 +315,7 @@ mmaxloc0_4_r4 (gfc_array_i4 * const restrict retarray,
base -= sstride[n] * extent[n];
mbase -= mstride[n] * extent[n];
n++;
- if (n == rank)
+ if (n >= rank)
{
/* Break out of the loop. */
base = NULL;