comparison src/gui.c @ 2416:1a9c16dd76d4 vim73

Fix compiler warnings on 64 bit systems.
author Bram Moolenaar <bram@vim.org>
date Mon, 26 Jul 2010 22:51:28 +0200
parents 0ca06a92adfb
children d156d5627487
comparison
equal deleted inserted replaced
2415:8f017e31750f 2416:1a9c16dd76d4
4465 /* 4465 /*
4466 * Do a horizontal scroll. Return TRUE if the cursor moved, FALSE otherwise. 4466 * Do a horizontal scroll. Return TRUE if the cursor moved, FALSE otherwise.
4467 */ 4467 */
4468 int 4468 int
4469 gui_do_horiz_scroll(leftcol, compute_longest_lnum) 4469 gui_do_horiz_scroll(leftcol, compute_longest_lnum)
4470 colnr_T leftcol; 4470 long_u leftcol;
4471 int compute_longest_lnum; 4471 int compute_longest_lnum;
4472 { 4472 {
4473 /* no wrapping, no scrolling */ 4473 /* no wrapping, no scrolling */
4474 if (curwin->w_p_wrap) 4474 if (curwin->w_p_wrap)
4475 return FALSE; 4475 return FALSE;
4476 4476
4477 if (curwin->w_leftcol == leftcol) 4477 if (curwin->w_leftcol == (colnr_T)leftcol)
4478 return FALSE; 4478 return FALSE;
4479 4479
4480 curwin->w_leftcol = leftcol; 4480 curwin->w_leftcol = (colnr_T)leftcol;
4481 4481
4482 /* When the line of the cursor is too short, move the cursor to the 4482 /* When the line of the cursor is too short, move the cursor to the
4483 * longest visible line. */ 4483 * longest visible line. */
4484 if (vim_strchr(p_go, GO_HORSCROLL) == NULL 4484 if (vim_strchr(p_go, GO_HORSCROLL) == NULL
4485 && !virtual_active() 4485 && !virtual_active()
4486 && leftcol > scroll_line_len(curwin->w_cursor.lnum)) 4486 && (colnr_T)leftcol > scroll_line_len(curwin->w_cursor.lnum))
4487 { 4487 {
4488 if (compute_longest_lnum) 4488 if (compute_longest_lnum)
4489 { 4489 {
4490 curwin->w_cursor.lnum = gui_find_longest_lnum(); 4490 curwin->w_cursor.lnum = gui_find_longest_lnum();
4491 curwin->w_cursor.col = 0; 4491 curwin->w_cursor.col = 0;