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
Cast is mandatory here.
[simgrid.git]
/
src
/
simix
/
smx_deployment.c
diff --git
a/src/simix/smx_deployment.c
b/src/simix/smx_deployment.c
index
f5187d4
..
511e695
100644
(file)
--- a/
src/simix/smx_deployment.c
+++ b/
src/simix/smx_deployment.c
@@
-177,7
+177,7
@@
xbt_main_func_t SIMIX_get_registered_function(const char *name)
xbt_assert(simix_global,
"SIMIX_global_init has to be called before SIMIX_get_registered_function.");
xbt_assert(simix_global,
"SIMIX_global_init has to be called before SIMIX_get_registered_function.");
- res = xbt_dict_get_or_null(simix_global->registered_functions, name);
+ res =
(xbt_main_func_t)
xbt_dict_get_or_null(simix_global->registered_functions, name);
return res ? res : default_function;
}
return res ? res : default_function;
}