@@ -194,8 +194,8 @@ OPAL_DECLSPEC extern const opal_datatype_t opal_datatype_unsigned_long;
194
194
*/
195
195
int opal_datatype_register_params (void );
196
196
OPAL_DECLSPEC int32_t opal_datatype_init (void );
197
- OPAL_DECLSPEC opal_datatype_t * opal_datatype_create (int32_t expectedSize );
198
- OPAL_DECLSPEC int32_t opal_datatype_create_desc (opal_datatype_t * datatype , int32_t expectedSize );
197
+ OPAL_DECLSPEC opal_datatype_t * opal_datatype_create (size_t expectedSize );
198
+ OPAL_DECLSPEC int32_t opal_datatype_create_desc (opal_datatype_t * datatype , size_t expectedSize );
199
199
OPAL_DECLSPEC int32_t opal_datatype_commit (opal_datatype_t * pData );
200
200
OPAL_DECLSPEC int32_t opal_datatype_destroy (opal_datatype_t * * );
201
201
OPAL_DECLSPEC int32_t opal_datatype_is_monotonic (opal_datatype_t * type );
@@ -225,7 +225,7 @@ static inline int32_t opal_datatype_is_predefined(const opal_datatype_t *type)
225
225
* is contiguous in the memory. And false (0) otherwise.
226
226
*/
227
227
static inline int32_t opal_datatype_is_contiguous_memory_layout (const opal_datatype_t * datatype ,
228
- int32_t count )
228
+ size_t count )
229
229
{
230
230
if (!(datatype -> flags & OPAL_DATATYPE_FLAG_CONTIGUOUS ))
231
231
return 0 ;
@@ -246,7 +246,7 @@ OPAL_DECLSPEC int32_t opal_datatype_clone(const opal_datatype_t *src_type,
246
246
/**
247
247
* A contiguous array of identical datatypes.
248
248
*/
249
- OPAL_DECLSPEC int32_t opal_datatype_create_contiguous (int count , const opal_datatype_t * oldType ,
249
+ OPAL_DECLSPEC int32_t opal_datatype_create_contiguous (size_t count , const opal_datatype_t * oldType ,
250
250
opal_datatype_t * * newType );
251
251
/**
252
252
* Add a new datatype to the base type description. The count is the number
@@ -306,7 +306,7 @@ OPAL_DECLSPEC ssize_t opal_datatype_get_element_count(const opal_datatype_t *pDa
306
306
OPAL_DECLSPEC int32_t opal_datatype_set_element_count (const opal_datatype_t * pData , size_t count ,
307
307
size_t * length );
308
308
OPAL_DECLSPEC int32_t opal_datatype_copy_content_same_ddt (const opal_datatype_t * pData ,
309
- int32_t count , char * pDestBuf ,
309
+ size_t count , char * pDestBuf ,
310
310
char * pSrcBuf );
311
311
312
312
OPAL_DECLSPEC int opal_datatype_compute_ptypes (opal_datatype_t * datatype );
@@ -348,10 +348,10 @@ static inline ptrdiff_t opal_datatype_span(const opal_datatype_t *pData, size_t
348
348
* to make it stop on all pack and unpack errors.
349
349
*/
350
350
OPAL_DECLSPEC int opal_datatype_safeguard_pointer_debug_breakpoint (const void * actual_ptr ,
351
- int length ,
351
+ size_t length ,
352
352
const void * initial_ptr ,
353
353
const opal_datatype_t * pData ,
354
- int count );
354
+ size_t count );
355
355
#endif /* OPAL_ENABLE_DEBUG */
356
356
357
357
END_C_DECLS
0 commit comments