]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libgfortran/generated/count_2_l.c
re PR libfortran/79956 (many new -Wmaybe-uninitialized warnings with bootstrap-O3)
[thirdparty/gcc.git] / libgfortran / generated / count_2_l.c
index 256403ffaba7697d18abb93b94395f8ea31197fe..8132c2ed757108e8d2e5f07449a51e2091ad0af7 100644 (file)
@@ -195,9 +195,9 @@ count_2_l (gfc_array_i2 * 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;
             }