diff options
author | Ton Roosendaal <ton@blender.org> | 2007-04-29 14:49:02 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2007-04-29 14:49:02 +0400 |
commit | 243d1a28c0635a85c2dca9a23e9465b170b0ba3a (patch) | |
tree | 90a6fb16f8ca90d04d70e8ff129c24c98b7f003a /source/blender/src/editkey.c | |
parent | e4d6f331eb90f7375a241a7698bd6958b6ced326 (diff) |
Casting fixes for 64 bits. Incomplete commit, discussion on proper casting
has to be finished.
Diffstat (limited to 'source/blender/src/editkey.c')
-rw-r--r-- | source/blender/src/editkey.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/src/editkey.c b/source/blender/src/editkey.c index e4c35254698..85dac9ee3c5 100644 --- a/source/blender/src/editkey.c +++ b/source/blender/src/editkey.c @@ -164,7 +164,7 @@ static void rvk_slider_func(void *voidob, void *voidkeynum) IpoCurve *icu=NULL; BezTriple *bezt=NULL; float cfra, rvkval; - int keynum = (int) voidkeynum; + int keynum = (long) voidkeynum; cfra = frame_to_float(CFRA); @@ -277,7 +277,7 @@ void make_rvk_slider(uiBlock *block, Object *ob, int keynum, x, y , w, h, meshslidervals+keynum, min, max, 10, 2, tip); - uiButSetFunc(but, rvk_slider_func, ob, (void *)keynum); + uiButSetFunc(but, rvk_slider_func, ob, (void *)(long)keynum); // no hilite, the winmatrix is not correct later on... uiButSetFlag(but, UI_NO_HILITE); |