A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
catch a couple more reinterpret_cast
[simgrid.git]
/
src
/
smpi
/
smpi_pmpi.cpp
diff --git
a/src/smpi/smpi_pmpi.cpp
b/src/smpi/smpi_pmpi.cpp
index
5335aed
..
658588d
100644
(file)
--- a/
src/smpi/smpi_pmpi.cpp
+++ b/
src/smpi/smpi_pmpi.cpp
@@
-3099,10
+3099,10
@@
int PMPI_Info_dup(MPI_Info info, MPI_Info *newinfo){
(*newinfo)->info_dict= xbt_dict_new_homogeneous(xbt_free_f);
(*newinfo)->refcount=1;
xbt_dict_cursor_t cursor = nullptr;
(*newinfo)->info_dict= xbt_dict_new_homogeneous(xbt_free_f);
(*newinfo)->refcount=1;
xbt_dict_cursor_t cursor = nullptr;
-
int *
key;
+
char*
key;
void* data;
xbt_dict_foreach(info->info_dict,cursor,key,data){
void* data;
xbt_dict_foreach(info->info_dict,cursor,key,data){
- xbt_dict_set((*newinfo)->info_dict,
reinterpret_cast<char*>(key), xbt_strdup(reinterpret
_cast<char*>(data)), nullptr);
+ xbt_dict_set((*newinfo)->info_dict,
key, xbt_strdup(static
_cast<char*>(data)), nullptr);
}
return MPI_SUCCESS;
}
}
return MPI_SUCCESS;
}