diff options
author | Tiago Cunha <tcunha@gmx.com> | 2010-06-06 00:27:08 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2010-06-06 00:27:08 +0000 |
commit | 31657820bc7613a933517b7ac97dee7958c979d5 (patch) | |
tree | 2cc71e6574bc92b829bceeca466e346f8f62459e /tty.c | |
parent | be3643fba09b18c0a6b1fc88c93833aca7cc0345 (diff) | |
download | rtmux-31657820bc7613a933517b7ac97dee7958c979d5.tar.gz rtmux-31657820bc7613a933517b7ac97dee7958c979d5.tar.bz2 rtmux-31657820bc7613a933517b7ac97dee7958c979d5.zip |
Sync OpenBSD patchset 714:
Shut up gcc4 warnings.
Diffstat (limited to 'tty.c')
-rw-r--r-- | tty.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: tty.c,v 1.190 2010-06-06 00:23:44 tcunha Exp $ */ +/* $Id: tty.c,v 1.191 2010-06-06 00:27:08 tcunha 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)) { |