From e0a814d3a710cc6d766aa4ab64b99d33f2b426d5 Mon Sep 17 00:00:00 2001 From: Brian Barrett Date: Tue, 7 Feb 2006 12:14:41 +0000 Subject: [PATCH] * adjust the buffer position on predefined datatypes as well as user datatypes when creating from a buffer. This commit was SVN r8917. --- ompi/datatype/dt_args.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ompi/datatype/dt_args.c b/ompi/datatype/dt_args.c index 3fbcd70eae..5fefa745b7 100644 --- a/ompi/datatype/dt_args.c +++ b/ompi/datatype/dt_args.c @@ -347,6 +347,7 @@ ompi_ddt_create_from_packed_description( void** packed_buffer, if( MPI_COMBINER_DUP == create_type ) { /* there we have a simple predefined datatype */ assert( position[1] < DT_MAX_PREDEFINED ); + *packed_buffer = position + 2; return (ompi_datatype_t*)ompi_ddt_basicDatatypes[position[1]]; } number_of_length = position[1];