Commits

Jed Brown  committed c7e6e2c

Fix bad cast syntax

Hg-commit: b5972847114825b1d6f566981883d5ed67bbb148

  • Participants
  • Parent commits 29dcf52

Comments (0)

Files changed (2)

File src/mat/impls/aij/mpi/mpiov.c

   for(i = 0; i < ismax; ++i) {
     PetscBool sorted;
     ierr = ISSorted(iscol[i], &sorted); CHKERRQ(ierr);
-    if(!sorted) SETERRQ1((PetscObject(iscol[i]))->comm, PETSC_ERR_SUP, "Column index set %D not sorted", i);
+    if(!sorted) SETERRQ1(((PetscObject)iscol[i])->comm, PETSC_ERR_SUP, "Column index set %D not sorted", i);
   }
 
   /*

File src/mat/impls/baij/mpi/baijov.c

   for(i = 0; i < ismax; ++i) {
     PetscBool sorted;
     ierr = ISSorted(iscol[i], &sorted); CHKERRQ(ierr);
-    if(!sorted) SETERRQ1((PetscObject(iscol[i]))->comm, PETSC_ERR_SUP, "Column index set %D not sorted", i);
+    if(!sorted) SETERRQ1(((PetscObject)iscol[i])->comm, PETSC_ERR_SUP, "Column index set %D not sorted", i);
   }
   /* The compression and expansion should be avoided. Doesn't point
      out errors, might change the indices, hence buggey */