Commits

Hong Zhang committed 12b89a4

bugfix for the case brows=0

  • Participants
  • Parent commits e88777f

Comments (0)

Files changed (1)

File src/mat/impls/aij/seq/matmatmult.c

       nrows = 0;
       for (j=0; j<cm; j++) {
         if (rowhit[j]) {
-          rows_i[nrows] = j;
-          den2sp_i[j]   = idxhit[j];
+          rows_i[nrows]   = j;
+          den2sp_i[nrows] = idxhit[j];
           nrows++;
         }
       } 
       nrows = 0;
       for (j=0; j<cm; j++) {
         if (rowhit[j]) {
-          rows_i[nrows] = j;
-          den2sp_i[j]   = idxhit[j];
+          rows_i[nrows]   = j;
+          den2sp_i[j] = idxhit[j];
           nrows++;
         }
       }