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] Explicit cast when loosing precision (teshsuite/).
[simgrid.git]
/
teshsuite
/
s4u
/
evaluate-get-route-time
/
evaluate-get-route-time.cpp
diff --git
a/teshsuite/s4u/evaluate-get-route-time/evaluate-get-route-time.cpp
b/teshsuite/s4u/evaluate-get-route-time/evaluate-get-route-time.cpp
index
a607ed6
..
0367a74
100644
(file)
--- a/
teshsuite/s4u/evaluate-get-route-time/evaluate-get-route-time.cpp
+++ b/
teshsuite/s4u/evaluate-get-route-time/evaluate-get-route-time.cpp
@@
-24,7
+24,7
@@
int main(int argc, char** argv)
e.load_platform(argv[1]);
std::vector<simgrid::s4u::Host*> hosts = e.get_all_hosts();
e.load_platform(argv[1]);
std::vector<simgrid::s4u::Host*> hosts = e.get_all_hosts();
- int host_count =
e.get_host_count(
);
+ int host_count =
static_cast<int>(e.get_host_count()
);
/* Random number initialization */
simgrid::xbt::random::set_mersenne_seed(static_cast<int>(xbt_os_time()));
/* Random number initialization */
simgrid::xbt::random::set_mersenne_seed(static_cast<int>(xbt_os_time()));