summaryrefslogtreecommitdiffstats
path: root/otherlibs/labltk/support/cltkTimer.c
diff options
context:
space:
mode:
Diffstat (limited to 'otherlibs/labltk/support/cltkTimer.c')
-rw-r--r--otherlibs/labltk/support/cltkTimer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/otherlibs/labltk/support/cltkTimer.c b/otherlibs/labltk/support/cltkTimer.c
index 380dde3ed..afebef8e1 100644
--- a/otherlibs/labltk/support/cltkTimer.c
+++ b/otherlibs/labltk/support/cltkTimer.c
@@ -34,11 +34,11 @@ CAMLprim value camltk_add_timer(value milli, value cbid)
CheckInit();
/* look at tkEvent.c , Tk_Token is an int */
return (Val_int(Tcl_CreateTimerHandler(Int_val(milli), TimerProc,
- (ClientData) (Int_val(cbid)))));
+ (ClientData) (Long_val(cbid)))));
}
CAMLprim value camltk_rem_timer(value token)
{
- Tcl_DeleteTimerHandler((Tcl_TimerToken) Int_val(token));
+ Tcl_DeleteTimerHandler((Tcl_TimerToken) Long_val(token));
return Val_unit;
}