summaryrefslogtreecommitdiff
path: root/libgfortran/generated/minval_i1.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgfortran/generated/minval_i1.c')
-rw-r--r--libgfortran/generated/minval_i1.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libgfortran/generated/minval_i1.c b/libgfortran/generated/minval_i1.c
index 842abbb4a3c..ccfdfa7670b 100644
--- a/libgfortran/generated/minval_i1.c
+++ b/libgfortran/generated/minval_i1.c
@@ -181,9 +181,9 @@ minval_i1 (gfc_array_i1 * 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;
}
@@ -386,9 +386,9 @@ mminval_i1 (gfc_array_i1 * const restrict retarray,
mbase -= mstride[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. */
base = NULL;
break;
}
@@ -526,7 +526,7 @@ sminval_i1 (gfc_array_i1 * const restrict retarray,
frequently used path so probably not worth it. */
dest -= dstride[n] * extent[n];
n++;
- if (n == rank)
+ if (n >= rank)
return;
else
{