mirror of
https://github.com/tmux/tmux.git
synced 2025-01-05 23:38:48 +00:00
Fix some warnings.
This commit is contained in:
parent
e06a4e041c
commit
da05d05824
6
format.c
6
format.c
@ -1622,7 +1622,7 @@ format_cb_mouse_x(struct format_tree *ft)
|
||||
if (ft->c != NULL && (ft->c->tty.flags & TTY_STARTED)) {
|
||||
if (ft->m.statusat == 0 && ft->m.y < ft->m.statuslines)
|
||||
return (format_printf("%u", ft->m.x));
|
||||
if (ft->m.statusat > 0 && ft->m.y >= ft->m.statusat)
|
||||
if (ft->m.statusat > 0 && ft->m.y >= (u_int)ft->m.statusat)
|
||||
return (format_printf("%u", ft->m.x));
|
||||
}
|
||||
return (NULL);
|
||||
@ -1633,7 +1633,7 @@ static void *
|
||||
format_cb_mouse_y(struct format_tree *ft)
|
||||
{
|
||||
struct window_pane *wp;
|
||||
u_int x, y, top;
|
||||
u_int x, y;
|
||||
|
||||
if (!ft->m.valid)
|
||||
return (NULL);
|
||||
@ -1643,7 +1643,7 @@ format_cb_mouse_y(struct format_tree *ft)
|
||||
if (ft->c != NULL && (ft->c->tty.flags & TTY_STARTED)) {
|
||||
if (ft->m.statusat == 0 && ft->m.y < ft->m.statuslines)
|
||||
return (format_printf("%u", ft->m.y));
|
||||
if (ft->m.statusat > 0 && ft->m.y >= ft->m.statusat)
|
||||
if (ft->m.statusat > 0 && ft->m.y >= (u_int)ft->m.statusat)
|
||||
return (format_printf("%u", ft->m.y - ft->m.statusat));
|
||||
}
|
||||
return (NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user