From 423f404c348355662938326d83635f9f0c29d95d Mon Sep 17 00:00:00 2001 From: Gleb Natapov Date: Thu, 7 Jun 2007 11:33:28 +0000 Subject: [PATCH] Shut up compiler warning. Ugly, but I can see better way except changing converter to use uint64_t(ssize_t?) for offset. This commit was SVN r14950. --- ompi/mca/pml/ob1/pml_ob1_sendreq.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ompi/mca/pml/ob1/pml_ob1_sendreq.c b/ompi/mca/pml/ob1/pml_ob1_sendreq.c index 606ea612b7..c8d4650f42 100644 --- a/ompi/mca/pml/ob1/pml_ob1_sendreq.c +++ b/ompi/mca/pml/ob1/pml_ob1_sendreq.c @@ -922,7 +922,7 @@ int mca_pml_ob1_send_request_schedule_exclusive( mca_pml_ob1_frag_hdr_t* hdr; mca_btl_base_descriptor_t* des; int rc; - size_t size; + size_t size, offset; opal_list_item_t *item; mca_bml_base_btl_t* bml_btl = mca_bml_base_btl_array_get_next(&bml_endpoint->btl_send); @@ -986,8 +986,10 @@ int mca_pml_ob1_send_request_schedule_exclusive( } /* pack into a descriptor */ + offset = (size_t)range->range_send_offset; ompi_convertor_set_position(&sendreq->req_send.req_convertor, - &range->range_send_offset); + &offset); + range->range_send_offset = (uint64_t)offset; mca_bml_base_prepare_src(bml_btl, NULL, &sendreq->req_send.req_convertor,