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 (C examples).
[simgrid.git]
/
examples
/
c
/
comm-wait
/
comm-wait.c
diff --git
a/examples/c/comm-wait/comm-wait.c
b/examples/c/comm-wait/comm-wait.c
index
6119863
..
142dcf7
100644
(file)
--- a/
examples/c/comm-wait/comm-wait.c
+++ b/
examples/c/comm-wait/comm-wait.c
@@
-21,7
+21,7
@@
static void sender(int argc, char* argv[])
{
xbt_assert(argc == 5, "The sender function expects 4 arguments from the XML deployment file");
long messages_count = xbt_str_parse_int(argv[1], "Invalid amount of messages: %s"); /* - number of messages */
-
double message_size = xbt_str_parse_double(argv[2], "Invalid message size: %s");
/* - communication cost */
+
long message_size = xbt_str_parse_int(argv[2], "Invalid message size: %s");
/* - communication cost */
double sleep_start_time = xbt_str_parse_double(argv[3], "Invalid sleep start time: %s"); /* - start time */
double sleep_test_time = xbt_str_parse_double(argv[4], "Invalid test time: %s"); /* - test time */