From 421c31008bb00af543930a0205872f5b8db7f129 Mon Sep 17 00:00:00 2001 From: Christian Heinrich Date: Wed, 18 Mar 2015 18:32:10 +0100 Subject: [PATCH] Added xbt_assert statement to smpi_mpi_dt.c * This will help prevent a value <= 0 --- src/smpi/smpi_mpi_dt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/smpi/smpi_mpi_dt.c b/src/smpi/smpi_mpi_dt.c index 8746df92a6..dd279e64b1 100644 --- a/src/smpi/smpi_mpi_dt.c +++ b/src/smpi/smpi_mpi_dt.c @@ -406,6 +406,7 @@ void smpi_datatype_create(MPI_Datatype* new_type, int size,int lb, int ub, int h } void smpi_datatype_free(MPI_Datatype* type){ + xbt_assert((*type)->in_use >= 0); if((*type)->attributes !=NULL){ xbt_dict_cursor_t cursor = NULL; int* key; -- 2.20.1