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
This change allow to avoid the Visual C++ compiler Warning that occur when you try...
[simgrid.git]
/
src
/
gras
/
Msg
/
timer.c
diff --git
a/src/gras/Msg/timer.c
b/src/gras/Msg/timer.c
index
63b6ce0
..
1249840
100644
(file)
--- a/
src/gras/Msg/timer.c
+++ b/
src/gras/Msg/timer.c
@@
-141,7
+141,7
@@
double gras_msg_timer_handle(void) {
double now=gras_os_time();
double untilnext = -1.0;
double now=gras_os_time();
double untilnext = -1.0;
- for (cursor=0; cursor < xbt_dynar_length(pd->timers); cursor++) {
+ for (cursor=0; cursor <
(int)
xbt_dynar_length(pd->timers); cursor++) {
double untilthis;
timer = xbt_dynar_get_ptr (pd->timers, cursor);
double untilthis;
timer = xbt_dynar_get_ptr (pd->timers, cursor);
@@
-165,7
+165,7
@@
double gras_msg_timer_handle(void) {
DEBUG2("[%.0f] Remove %p now that it's done", gras_os_time(), timer->action);
xbt_dynar_cursor_rm(pd->timers, &cursor);
}
DEBUG2("[%.0f] Remove %p now that it's done", gras_os_time(), timer->action);
xbt_dynar_cursor_rm(pd->timers, &cursor);
}
-
action
();
+
(*action)
();
return 0.0;
} else if (untilthis < untilnext || untilnext == -1) {
untilnext = untilthis;
return 0.0;
} else if (untilthis < untilnext || untilnext == -1) {
untilnext = untilthis;