diff options
Diffstat (limited to 'libgfortran/generated/minval_r8.c')
-rw-r--r-- | libgfortran/generated/minval_r8.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libgfortran/generated/minval_r8.c b/libgfortran/generated/minval_r8.c index 528fbe4ad06..78c751ef699 100644 --- a/libgfortran/generated/minval_r8.c +++ b/libgfortran/generated/minval_r8.c @@ -181,9 +181,9 @@ minval_r8 (gfc_array_r8 * 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_r8 (gfc_array_r8 * 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_r8 (gfc_array_r8 * 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 { |