From 2e042c91cf20a34236b2a7bef08f90fdabdaa0c0 Mon Sep 17 00:00:00 2001 From: George Bosilca Date: Tue, 13 Feb 2007 09:34:04 +0000 Subject: [PATCH] Once we compute the local offset use it (instead of the global one). This commit was SVN r13634. --- ompi/mca/pml/ob1/pml_ob1_recvreq.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ompi/mca/pml/ob1/pml_ob1_recvreq.h b/ompi/mca/pml/ob1/pml_ob1_recvreq.h index cdcbdbbb53..c9e44cadb1 100644 --- a/ompi/mca/pml/ob1/pml_ob1_recvreq.h +++ b/ompi/mca/pml/ob1/pml_ob1_recvreq.h @@ -289,8 +289,8 @@ do { if(offset >= segment->seg_len) { \ offset -= segment->seg_len; \ } else { \ - iov[iov_count].iov_len = segment->seg_len - seg_offset; \ - iov[iov_count].iov_base = (IOVBASE_TYPE*)((unsigned char*)segment->seg_addr.pval + seg_offset); \ + iov[iov_count].iov_len = segment->seg_len - offset; \ + iov[iov_count].iov_base = (IOVBASE_TYPE*)((unsigned char*)segment->seg_addr.pval + offset); \ iov_count++; \ } \ } \