From 8cad1d64819f0c4b76f537b8bd2630677c45505f Mon Sep 17 00:00:00 2001 From: Yael Dayan Date: Wed, 25 Jul 2012 12:08:41 +0000 Subject: [PATCH] while working on a fix for the Get flow in pml, I've encountered a problem in "mca_pml_ob1_compute_segment_length" function, at pml_ob1.h file. The return value from this function was truncated from size_t to int. This fix changes the return value to type size_t. This commit was SVN r26863. --- ompi/mca/pml/ob1/pml_ob1.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ompi/mca/pml/ob1/pml_ob1.h b/ompi/mca/pml/ob1/pml_ob1.h index 72bcabe686..87f8695896 100644 --- a/ompi/mca/pml/ob1/pml_ob1.h +++ b/ompi/mca/pml/ob1/pml_ob1.h @@ -284,7 +284,7 @@ void mca_pml_ob1_process_pending_rdma(void); /* * Compute the total number of bytes on supplied descriptor */ -static inline int mca_pml_ob1_compute_segment_length (size_t seg_size, void *segments, size_t count, +static inline size_t mca_pml_ob1_compute_segment_length (size_t seg_size, void *segments, size_t count, size_t hdrlen) { size_t i, length = 0;