*/
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)
{
void gui_may_update_scrollbars __ARGS((void));
void gui_update_scrollbars __ARGS((int force));
int gui_do_scroll __ARGS((void));
-int gui_do_horiz_scroll __ARGS((colnr_T leftcol, int compute_longest_lnum));
+int gui_do_horiz_scroll __ARGS((long_u leftcol, int compute_longest_lnum));
void gui_check_colors __ARGS((void));
guicolor_T gui_get_color __ARGS((char_u *name));
int gui_get_lightness __ARGS((guicolor_T pixel));
qi->qf_lists[qi->qf_curlist].qf_count = 0;
if (qf_title != NULL)
{
- char_u *p = alloc(STRLEN(qf_title) + 2);
+ char_u *p = alloc((int)STRLEN(qf_title) + 2);
qi->qf_lists[qi->qf_curlist].qf_title = p;
if (p != NULL)