From b904d4826f125cddce20b262e4f0e0faf773a8fe Mon Sep 17 00:00:00 2001 From: Shiqing Fan Date: Tue, 13 Jul 2010 21:43:38 +0000 Subject: [PATCH] Get rid of a warning of using void pointer in arithmetic. This commit was SVN r23393. --- ompi/mca/btl/openib/btl_openib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ompi/mca/btl/openib/btl_openib.c b/ompi/mca/btl/openib/btl_openib.c index c456ec8c1c..67943ec0e4 100644 --- a/ompi/mca/btl/openib/btl_openib.c +++ b/ompi/mca/btl/openib/btl_openib.c @@ -1158,8 +1158,8 @@ mca_btl_base_descriptor_t* mca_btl_openib_prepare_src( return NULL; iov.iov_len = max_data; - iov.iov_base = (IOVBASE_TYPE *)to_base_frag(frag)->segment.seg_addr.pval + - reserve; + iov.iov_base = (IOVBASE_TYPE *) ( (unsigned char*)to_base_frag(frag)->segment.seg_addr.pval + + reserve ); rc = opal_convertor_pack(convertor, &iov, &iov_count, &max_data); *size = max_data;