summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2019-07-03 09:58:48 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2019-07-04 13:08:32 -0400
commit9adace08e31dbebe6733c173e5c47157e1ce13bf (patch)
treef5265c0ce7ccfb8de1825de920454f0e060315ba
parent56aaaca5ab452ff2a06ebcd27c1b69e603ee9807 (diff)
add casts to quiet gcc conversion-warnings, no object change
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
-rw-r--r--src/Repeater.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Repeater.c b/src/Repeater.c
index 9b16ced..65d9e6e 100644
--- a/src/Repeater.c
+++ b/src/Repeater.c
@@ -228,7 +228,7 @@ tic(XtPointer client_data, XtIntervalId *id)
}
DO_CALLBACK(rw);
- rw->repeater.timer = ADD_TIMEOUT(rw, rw->repeater.next_delay);
+ rw->repeater.timer = ADD_TIMEOUT(rw, (unsigned long)rw->repeater.next_delay);
if (rw->repeater.decay) {
rw->repeater.next_delay -= rw->repeater.decay;
@@ -282,7 +282,7 @@ ActionStart(Widget gw, XEvent *event, String *params, Cardinal *num_params)
XtCallCallbackList(gw, rw->repeater.start_callbacks, NULL);
DO_CALLBACK(rw);
- rw->repeater.timer = ADD_TIMEOUT(rw, rw->repeater.initial_delay);
+ rw->repeater.timer = ADD_TIMEOUT(rw, (unsigned long)rw->repeater.initial_delay);
rw->repeater.next_delay = rw->repeater.repeat_delay;
}