diff --git a/src/datatype/fake_stack.c b/src/datatype/fake_stack.c index 4ea8462f95..3652e89d79 100644 --- a/src/datatype/fake_stack.c +++ b/src/datatype/fake_stack.c @@ -264,7 +264,7 @@ int ompi_convertor_create_stack_with_pos_general( ompi_convertor_t* pConvertor, /* if we are embedded in another loop we should update it's length too */ pStack--; pConvertor->stack_pos--; - if( pConvertor->stack_pos >= 0 ) { + if( pConvertor->stack_pos > 0 ) { remoteLength[pConvertor->stack_pos] += remoteLength[pConvertor->stack_pos + 1]; } pos_desc++;