From: Augustin Degomme Date: Fri, 3 Oct 2014 20:05:17 +0000 (+0200) Subject: Fix compilation issue X-Git-Tag: v3_12~774 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/f4a4ef73baa450859c84d1d46168d456f7b76b8f Fix compilation issue --- diff --git a/src/smpi/smpi_comm.c b/src/smpi/smpi_comm.c index d108f6d5f9..7ed1a3253c 100644 --- a/src/smpi/smpi_comm.c +++ b/src/smpi/smpi_comm.c @@ -306,13 +306,13 @@ void smpi_comm_unuse(MPI_Comm comm){ xbt_free(comm->leaders_map); if(comm->attributes !=NULL){ xbt_dict_cursor_t cursor = NULL; - char *key; + int* key; smpi_key_elem elem; void * value; int flag; xbt_dict_foreach(comm->attributes, cursor, key, elem){ - if(smpi_attr_get(comm, (int)key, &value, &flag)==MPI_SUCCESS) - elem->delete_fn(comm, (int)key, &value, &flag); + if(smpi_attr_get(comm, *key, &value, &flag)==MPI_SUCCESS) + elem->delete_fn(comm, *key, &value, &flag); } } xbt_free(comm);