From cdfe5e71fd42fc936ededaf3b2293335ed41f3bf Mon Sep 17 00:00:00 2001 From: George Bosilca Date: Tue, 8 Nov 2005 21:45:45 +0000 Subject: [PATCH] By default there is no pending length on the convertor. This commit was SVN r8047. --- ompi/datatype/convertor.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ompi/datatype/convertor.c b/ompi/datatype/convertor.c index 45d439f0ea..2243967fe3 100644 --- a/ompi/datatype/convertor.c +++ b/ompi/datatype/convertor.c @@ -283,10 +283,11 @@ inline int ompi_convertor_prepare( ompi_convertor_t* convertor, /* As we change (or set) the datatype on this convertor we should reset the datatype * part of the convertor flags to the default value. */ - convertor->flags &= CONVERTOR_TYPE_MASK; - convertor->flags |= (CONVERTOR_DATATYPE_MASK & datatype->flags); - convertor->pDesc = (ompi_datatype_t*)datatype; - convertor->bConverted = 0; + convertor->flags &= CONVERTOR_TYPE_MASK; + convertor->flags |= (CONVERTOR_DATATYPE_MASK & datatype->flags); + convertor->pDesc = (ompi_datatype_t*)datatype; + convertor->bConverted = 0; + convertor->pending_length = 0; /* Decide which data representation will be used for the conversion. */ if( (NULL != datatype->opt_desc.desc) && (convertor->flags & CONVERTOR_HOMOGENEOUS) ) {