Commits

Satish Balay committed b4640e9

dmshell: fix warning on win32

  • Participants
  • Parent commits 756061a

Comments (0)

Files changed (1)

File src/dm/impls/shell/dmshell.c

     ierr = PetscObjectTypeCompare((PetscObject)A,MATMPIAIJ,&mpiaij);CHKERRQ(ierr);
     ierr = PetscStrcmp(mtype,MATAIJ,&aij);CHKERRQ(ierr);
     if (!flg) {
-      if (!(aij & (seqaij || mpiaij))) SETERRQ2(PetscObjectComm((PetscObject)dm),PETSC_ERR_ARG_NOTSAMETYPE,"Requested matrix of type %s, but only %s available",mtype,((PetscObject)A)->type_name);
+      if (!(aij && (seqaij || mpiaij))) SETERRQ2(PetscObjectComm((PetscObject)dm),PETSC_ERR_ARG_NOTSAMETYPE,"Requested matrix of type %s, but only %s available",mtype,((PetscObject)A)->type_name);
     }
   }
   if (((PetscObject)A)->refct < 2) { /* We have an exclusive reference so we can give it out */