summaryrefslogtreecommitdiffstats
path: root/otherlibs/labltk/support/cltkTimer.c
diff options
context:
space:
mode:
authorBenedikt Meurer <benedikt.meurer@googlemail.com>2012-02-05 09:20:46 +0000
committerBenedikt Meurer <benedikt.meurer@googlemail.com>2012-02-05 09:20:46 +0000
commitd0f04172e747ddf84f88ea8a126357664412d574 (patch)
treec268b49ebb311d5feda21af22c9591c6b326ed29 /otherlibs/labltk/support/cltkTimer.c
parente76218f17d50cb2d8d3f0fcf502c23bb5325fd30 (diff)
Fix various compiler warnings in labltk.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12126 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
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;
}