diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-06-06 23:04:47 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-06-06 23:04:47 +0200 |
commit | 9d6650f6c443985a83df3b3415eb42137e613f1f (patch) | |
tree | c2be6cc387cde90c14d77e0173b91eff3d5bb45f /src/gui_at_sb.c | |
parent | debe25a2a58f32a8301765c8c503c457ced3965d (diff) | |
download | vim-git-9d6650f6c443985a83df3b3415eb42137e613f1f.tar.gz |
Avoid compiler warnings.
Diffstat (limited to 'src/gui_at_sb.c')
-rw-r--r-- | src/gui_at_sb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui_at_sb.c b/src/gui_at_sb.c index 16d8d36fa..6cf1e7b5a 100644 --- a/src/gui_at_sb.c +++ b/src/gui_at_sb.c @@ -820,7 +820,7 @@ RepeatNotify(client_data, idp) if (mode == SMODE_PAGE_UP || mode == SMODE_LINE_UP) call_data = -call_data; - XtCallCallbacks((Widget)sbw, XtNscrollProc, (XtPointer)call_data); + XtCallCallbacks((Widget)sbw, XtNscrollProc, (XtPointer)(long_u)call_data); sbw->scrollbar.timer_id = XtAppAddTimeOut(XtWidgetToApplicationContext((Widget)sbw), @@ -894,7 +894,7 @@ ScrollSome(w, event, call_data) return; sbw->scrollbar.scroll_mode = SMODE_LINE_UP; - XtCallCallbacks(w, XtNscrollProc, (XtPointer)call_data); + XtCallCallbacks(w, XtNscrollProc, (XtPointer)(long_u)call_data); } static void @@ -977,7 +977,7 @@ NotifyScroll(w, event, params, num_params) } if (call_data) - XtCallCallbacks(w, XtNscrollProc, (XtPointer)call_data); + XtCallCallbacks(w, XtNscrollProc, (XtPointer)(long_u)call_data); /* establish autoscroll */ if (delay) |