summaryrefslogtreecommitdiffstats
path: root/src/gui.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-07-26 22:51:28 +0200
committerBram Moolenaar <Bram@vim.org>2010-07-26 22:51:28 +0200
commit5e109c4ab009a5b4c3bb769d8b2d22f9e4ee2c87 (patch)
tree3bf319d351e36d9576d149428e34663739e8a4ae /src/gui.c
parent0ed0eea20689b3bdafe296f4e132679d3977b943 (diff)
Fix compiler warnings on 64 bit systems.
Diffstat (limited to 'src/gui.c')
-rw-r--r--src/gui.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui.c b/src/gui.c
index 49014a532d..20a48d4975 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -4467,23 +4467,23 @@ gui_update_horiz_scrollbar(force)
*/
int
gui_do_horiz_scroll(leftcol, compute_longest_lnum)
- colnr_T leftcol;
+ long_u leftcol;
int compute_longest_lnum;
{
/* no wrapping, no scrolling */
if (curwin->w_p_wrap)
return FALSE;
- if (curwin->w_leftcol == leftcol)
+ if (curwin->w_leftcol == (colnr_T)leftcol)
return FALSE;
- curwin->w_leftcol = leftcol;
+ curwin->w_leftcol = (colnr_T)leftcol;
/* When the line of the cursor is too short, move the cursor to the
* longest visible line. */
if (vim_strchr(p_go, GO_HORSCROLL) == NULL
&& !virtual_active()
- && leftcol > scroll_line_len(curwin->w_cursor.lnum))
+ && (colnr_T)leftcol > scroll_line_len(curwin->w_cursor.lnum))
{
if (compute_longest_lnum)
{