diff options
author | dholland <dholland@NetBSD.org> | 2009-03-15 20:11:24 +0000 |
---|---|---|
committer | dholland <dholland@NetBSD.org> | 2009-03-15 20:11:24 +0000 |
commit | 7018c80faab5e958bea20bd639260b3869d84ddf (patch) | |
tree | 08cbf81035b463bb8ece336e98dedabf9dac4676 /sail | |
parent | 037ac0e84711f607c98d1e9a25ac8374ba902fdb (diff) | |
download | bsdgames-darwin-7018c80faab5e958bea20bd639260b3869d84ddf.tar.gz bsdgames-darwin-7018c80faab5e958bea20bd639260b3869d84ddf.tar.zst bsdgames-darwin-7018c80faab5e958bea20bd639260b3869d84ddf.zip |
Fix sign-compare problem that crept in due to working from an old tree.
Whoops. won't happen again...
Diffstat (limited to 'sail')
-rw-r--r-- | sail/pl_7.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sail/pl_7.c b/sail/pl_7.c index 2425104f..fe8c5f29 100644 --- a/sail/pl_7.c +++ b/sail/pl_7.c @@ -1,4 +1,4 @@ -/* $NetBSD: pl_7.c,v 1.35 2009/03/15 03:33:56 dholland Exp $ */ +/* $NetBSD: pl_7.c,v 1.36 2009/03/15 20:11:24 dholland Exp $ */ /* * Copyright (c) 1983, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)pl_7.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: pl_7.c,v 1.35 2009/03/15 03:33:56 dholland Exp $"); +__RCSID("$NetBSD: pl_7.c,v 1.36 2009/03/15 20:11:24 dholland Exp $"); #endif #endif /* not lint */ @@ -230,7 +230,8 @@ draw_scroll(void) index_of_top -= sc_scrollup; } - for (y = 0; y < SCROLL_Y - 1; y++) { + /* XXX: SCROLL_Y and whatnot should be unsigned too */ + for (y = 0; y < (unsigned) (SCROLL_Y - 1); y++) { index_of_y = index_of_top + y; if (index_of_y >= total_lines) { break; |