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
couple of minor smells
[simgrid.git]
/
teshsuite
/
simix
/
stack_overflow
/
stack_overflow.c
diff --git
a/teshsuite/simix/stack_overflow/stack_overflow.c
b/teshsuite/simix/stack_overflow/stack_overflow.c
index
9a951fe
..
5c7f74c
100644
(file)
--- a/
teshsuite/simix/stack_overflow/stack_overflow.c
+++ b/
teshsuite/simix/stack_overflow/stack_overflow.c
@@
-30,7
+30,7
@@
static int master(int argc, char *argv[])
{
XBT_INFO("Launching our nice bugged recursive function...");
unsigned i = 1;
- while (i <= 0x80000000
u
) {
+ while (i <= 0x80000000
U
) {
i *= 2;
unsigned res = collatz(i, i);
XBT_VERB("collatz(%u, %u) returned %u", i, i, res);
@@
-46,7
+46,7
@@
int main(int argc, char *argv[])
SIMIX_function_register("master", master);
SIMIX_create_environment(argv[1]);
- simcall_process_create("master", master, NULL,
"Tremblay", -1, 0, NULL, NULL, 0
);
+ simcall_process_create("master", master, NULL,
sg_host_by_name("Tremblay"), 0, NULL, NULL
);
SIMIX_run();
return 0;