diff --git a/ompi/mca/pml/uniq/pml_uniq.c b/ompi/mca/pml/uniq/pml_uniq.c index 84abdc443b..23a0e537ed 100644 --- a/ompi/mca/pml/uniq/pml_uniq.c +++ b/ompi/mca/pml/uniq/pml_uniq.c @@ -274,7 +274,7 @@ int mca_pml_uniq_add_procs(ompi_proc_t** procs, size_t nprocs) mca_pml_uniq_ptl_t* ptl_base = OBJ_NEW(mca_pml_uniq_ptl_t); ptl_base->ptl = ptl; ptl_base->ptl_cache_size = ptl->ptl_cache_size; - ptl->ptl_base = ptl_base; + ptl->ptl_base = (struct mca_pml_base_ptl_t*)ptl_base; } proc_pml->proc_ptl_first.ptl_base = ptl->ptl_base; proc_pml->proc_ptl_first.ptl_peer = ptl_peers[p]; diff --git a/ompi/mca/pml/uniq/pml_uniq_sendreq.h b/ompi/mca/pml/uniq/pml_uniq_sendreq.h index fcbc1f4f82..3a22fe4e12 100644 --- a/ompi/mca/pml/uniq/pml_uniq_sendreq.h +++ b/ompi/mca/pml/uniq/pml_uniq_sendreq.h @@ -41,12 +41,12 @@ OBJ_CLASS_DECLARATION(mca_pml_uniq_send_request_t); rc) \ { \ mca_pml_proc_t *proc = mca_pml_uniq_proc_lookup_remote(comm,dst); \ - mca_pml_uniq_ptl_t* ptl_base; \ + mca_pml_uniq_ptl_t* ptl_base; \ \ if(NULL == proc) { \ return OMPI_ERR_OUT_OF_RESOURCE; \ } \ - ptl_base = proc->proc_ptl_first.ptl_base; \ + ptl_base = (mca_pml_uniq_ptl_t*)proc->proc_ptl_first.ptl_base; \ /* \ * check to see if there is a cache of send requests associated with \ * this ptl - if so try the allocation from there. \ @@ -119,7 +119,7 @@ OBJ_CLASS_DECLARATION(mca_pml_uniq_send_request_t); #define MCA_PML_UNIQ_SEND_REQUEST_RETURN(sendreq) \ { \ mca_ptl_base_module_t* ptl = (sendreq)->req_ptl; \ - mca_pml_uniq_ptl_t* ptl_base = ptl->ptl_base; \ + mca_pml_uniq_ptl_t* ptl_base = (mca_pml_uniq_ptl_t*)ptl->ptl_base; \ \ /* Let the base handle the reference counts */ \ MCA_PML_BASE_SEND_REQUEST_FINI( &((sendreq)->req_send) ); \