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
let's not use useless casts
[simgrid.git]
/
src
/
smpi
/
bindings
/
smpi_f77_type.cpp
diff --git
a/src/smpi/bindings/smpi_f77_type.cpp
b/src/smpi/bindings/smpi_f77_type.cpp
index
bb6b3ca
..
6848328
100644
(file)
--- a/
src/smpi/bindings/smpi_f77_type.cpp
+++ b/
src/smpi/bindings/smpi_f77_type.cpp
@@
-57,9
+57,9
@@
void mpi_type_get_name_ (int* datatype, char * name, int* len, int* ierr){
}
void mpi_type_get_attr_ (int* type, int* type_keyval, int *attribute_val, int* flag, int* ierr){
}
void mpi_type_get_attr_ (int* type, int* type_keyval, int *attribute_val, int* flag, int* ierr){
-
size_t value = 0
;
+
int* value = nullptr
;
*ierr = MPI_Type_get_attr ( simgrid::smpi::Datatype::f2c(*type), *type_keyval, &value, flag);
*ierr = MPI_Type_get_attr ( simgrid::smpi::Datatype::f2c(*type), *type_keyval, &value, flag);
- *attribute_val = *
(int*)
value;
+ *attribute_val = *value;
}
void mpi_type_set_attr_ (int* type, int* type_keyval, void *attribute_val, int* ierr){
}
void mpi_type_set_attr_ (int* type, int* type_keyval, void *attribute_val, int* ierr){