Fix a few type casts on Windows.
This commit was SVN r24857.
Этот коммит содержится в:
родитель
86a80411f0
Коммит
1ed0f40d35
@ -875,7 +875,7 @@ ompi_osc_pt2pt_sendreq_recv_accum(ompi_osc_pt2pt_module_t *module,
|
|||||||
longreq->req_module = module;
|
longreq->req_module = module;
|
||||||
|
|
||||||
/* allocate a buffer to receive into ... */
|
/* allocate a buffer to receive into ... */
|
||||||
longreq->req_basereq.req_sendhdr = malloc(buflen + sizeof(ompi_osc_pt2pt_send_header_t));
|
longreq->req_basereq.req_sendhdr = (ompi_osc_pt2pt_send_header_t *) malloc(buflen + sizeof(ompi_osc_pt2pt_send_header_t));
|
||||||
|
|
||||||
if (NULL == longreq->req_basereq.req_sendhdr) return OMPI_ERR_TEMP_OUT_OF_RESOURCE;
|
if (NULL == longreq->req_basereq.req_sendhdr) return OMPI_ERR_TEMP_OUT_OF_RESOURCE;
|
||||||
/* fill in tmp header */
|
/* fill in tmp header */
|
||||||
|
@ -1180,7 +1180,7 @@ ompi_osc_rdma_sendreq_recv_accum(ompi_osc_rdma_module_t *module,
|
|||||||
longreq->req_module = module;
|
longreq->req_module = module;
|
||||||
|
|
||||||
/* allocate a buffer to receive into ... */
|
/* allocate a buffer to receive into ... */
|
||||||
longreq->req_basereq.req_sendhdr = malloc(buflen + sizeof(ompi_osc_rdma_send_header_t));
|
longreq->req_basereq.req_sendhdr = (ompi_osc_rdma_send_header_t *) malloc(buflen + sizeof(ompi_osc_rdma_send_header_t));
|
||||||
|
|
||||||
if (NULL == longreq->req_basereq.req_sendhdr) return OMPI_ERR_TEMP_OUT_OF_RESOURCE;
|
if (NULL == longreq->req_basereq.req_sendhdr) return OMPI_ERR_TEMP_OUT_OF_RESOURCE;
|
||||||
/* fill in tmp header */
|
/* fill in tmp header */
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user