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
[sonar] Const for pointer and reference parameters (slight return).
[simgrid.git]
/
src
/
smpi
/
mpi
/
smpi_status.cpp
diff --git
a/src/smpi/mpi/smpi_status.cpp
b/src/smpi/mpi/smpi_status.cpp
index b048fe74bcb22b4c511423674cab3ecf040bbf1f..c11c0979f79ad2e48d706c18edec6cfdda503089 100644
(file)
--- a/
src/smpi/mpi/smpi_status.cpp
+++ b/
src/smpi/mpi/smpi_status.cpp
@@
-37,7
+37,7
@@
void Status::set_elements(MPI_Status* status, const Datatype*, int count)
status->count=count;
}
-int Status::get_count(const MPI_Status
* status, MPI_Datatype
datatype)
+int Status::get_count(const MPI_Status
* status, const Datatype*
datatype)
{
return status->count / datatype->size();
}