summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/tty.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2010-06-05 16:32:22 +0000
committernicm <nicm@openbsd.org>2010-06-05 16:32:22 +0000
commit1961359a57fdd8dfe1e9b86198a58543ff1ec01c (patch)
tree6343557c985a3736298612fbd668592836d64b69 /usr.bin/tmux/tty.c
parentThis ioctl(TIOCGWINSZ) call is no longer necessary, the result is never (diff)
downloadwireguard-openbsd-1961359a57fdd8dfe1e9b86198a58543ff1ec01c.tar.xz
wireguard-openbsd-1961359a57fdd8dfe1e9b86198a58543ff1ec01c.zip
Shut up gcc4 warnings.
Diffstat (limited to 'usr.bin/tmux/tty.c')
-rw-r--r--usr.bin/tmux/tty.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c
index f972cfa41fb..ae950f6a3a8 100644
--- a/usr.bin/tmux/tty.c
+++ b/usr.bin/tmux/tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty.c,v 1.86 2010/05/31 19:51:29 nicm Exp $ */
+/* $OpenBSD: tty.c,v 1.87 2010/06/05 16:32:22 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -1090,7 +1090,7 @@ tty_cursor(struct tty *tty, u_int cx, u_int cy)
* Use HPA if change is larger than absolute, otherwise move
* the cursor with CUB/CUF.
*/
- if (abs(change) > cx && tty_term_has(term, TTYC_HPA)) {
+ if ((u_int) abs(change) > cx && tty_term_has(term, TTYC_HPA)) {
tty_putcode1(tty, TTYC_HPA, cx);
goto out;
} else if (change > 0 && tty_term_has(term, TTYC_CUB)) {
@@ -1126,7 +1126,7 @@ tty_cursor(struct tty *tty, u_int cx, u_int cy)
* Try to use VPA if change is larger than absolute or if this
* change would cross the scroll region, otherwise use CUU/CUD.
*/
- if (abs(change) > cy ||
+ if ((u_int) abs(change) > cy ||
(change < 0 && cy - change > tty->rlower) ||
(change > 0 && cy - change < tty->rupper)) {
if (tty_term_has(term, TTYC_VPA)) {