From 574c384ad42300cf10cc01b92f3a5662a0d76825 Mon Sep 17 00:00:00 2001 From: George Bosilca Date: Thu, 23 Feb 2006 04:28:44 +0000 Subject: [PATCH] This is the internal function so we should return the correct type. The external function is type_size and it's used only at the MPI level as MPI only support integers for the size. This commit was SVN r9124. --- ompi/datatype/datatype.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ompi/datatype/datatype.h b/ompi/datatype/datatype.h index 6535d0952d..ed87e0b738 100644 --- a/ompi/datatype/datatype.h +++ b/ompi/datatype/datatype.h @@ -180,7 +180,7 @@ static inline int32_t ompi_ddt_get_extent( const ompi_datatype_t* pData, long* l { *lb = pData->lb; *extent = pData->ub - pData->lb; return 0; } static inline int32_t ompi_ddt_get_true_extent( const ompi_datatype_t* pData, long* true_lb, long* true_extent) { *true_lb = pData->true_lb; *true_extent = (pData->true_ub - pData->true_lb); return 0; } -static inline int32_t ompi_ddt_get_size( const ompi_datatype_t* pData, long* size ) +static inline int32_t ompi_ddt_get_size( const ompi_datatype_t* pData, unsigned long* size ) { *size = pData->size; return 0; } /* * This function return true (1) if the datatype representation depending on the count