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
Explicit cast.
[simgrid.git]
/
src
/
smpi
/
mpi
/
smpi_datatype.cpp
diff --git
a/src/smpi/mpi/smpi_datatype.cpp
b/src/smpi/mpi/smpi_datatype.cpp
index
09e34be
..
0dcfaef
100644
(file)
--- a/
src/smpi/mpi/smpi_datatype.cpp
+++ b/
src/smpi/mpi/smpi_datatype.cpp
@@
-260,7
+260,7
@@
int Datatype::extent(MPI_Aint* lb, MPI_Aint* extent) const
void Datatype::get_name(char* name, int* length) const
{
- *length =
name_.length(
);
+ *length =
static_cast<int>(name_.length()
);
if (not name_.empty()) {
name_.copy(name, *length);
name[*length] = '\0';